File size: 419,496 Bytes
001a658 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 | [
{
"idx": 0,
"db_id": "concert_singer",
"question": "How many singers do we have",
"pred": "SELECT COUNT(*) FROM singer",
"gold": "SELECT COUNT(*) FROM singer",
"em_norm": 1,
"ex": 1
},
{
"idx": 1,
"db_id": "concert_singer",
"question": "What is the total number of singers",
"pred": "SELECT COUNT(*) FROM singer",
"gold": "SELECT COUNT(*) FROM singer",
"em_norm": 1,
"ex": 1
},
{
"idx": 2,
"db_id": "concert_singer",
"question": "Show name, country, age for all singers ordered by age from the oldest to the youngest",
"pred": "SELECT name, country, age FROM singer ORDER BY age DESC",
"gold": "SELECT name, country, age FROM singer ORDER BY age DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 3,
"db_id": "concert_singer",
"question": "What are the names, countries, and ages for every singer in descending order of age",
"pred": "SELECT name, country, age FROM singer ORDER BY age DESC",
"gold": "SELECT name, country, age FROM singer ORDER BY age DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 4,
"db_id": "concert_singer",
"question": "What is the average, minimum, and maximum age of all singers from France",
"pred": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'",
"gold": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'",
"em_norm": 1,
"ex": 1
},
{
"idx": 5,
"db_id": "concert_singer",
"question": "What is the average, minimum, and maximum age for all French singers",
"pred": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'French'",
"gold": "SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France'",
"em_norm": 0,
"ex": 0
},
{
"idx": 6,
"db_id": "concert_singer",
"question": "Show the name and the release year of the song by the youngest singer",
"pred": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1",
"gold": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 7,
"db_id": "concert_singer",
"question": "What are the names and release years for all the songs of the youngest singer",
"pred": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1",
"gold": "SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 8,
"db_id": "concert_singer",
"question": "What are all distinct countries where singers above age 20 are from",
"pred": "SELECT DISTINCT country FROM singer WHERE age > 20",
"gold": "SELECT DISTINCT country FROM singer WHERE age > 20",
"em_norm": 1,
"ex": 1
},
{
"idx": 9,
"db_id": "concert_singer",
"question": "What are the different countries with singers above age 20",
"pred": "SELECT DISTINCT Country FROM singer WHERE Age > 20",
"gold": "SELECT DISTINCT country FROM singer WHERE age > 20",
"em_norm": 1,
"ex": 1
},
{
"idx": 10,
"db_id": "concert_singer",
"question": "Show all countries and the number of singers in each country",
"pred": "SELECT Country, COUNT(*) FROM singer GROUP BY Country",
"gold": "SELECT country, COUNT(*) FROM singer GROUP BY country",
"em_norm": 1,
"ex": 1
},
{
"idx": 11,
"db_id": "concert_singer",
"question": "How many singers are from each country",
"pred": "SELECT Country, COUNT(*) FROM singer GROUP BY Country",
"gold": "SELECT country, COUNT(*) FROM singer GROUP BY country",
"em_norm": 1,
"ex": 1
},
{
"idx": 12,
"db_id": "concert_singer",
"question": "List all song names by singers above the average age",
"pred": "SELECT Song_Name FROM singer WHERE Age > (SELECT AVG(Age) FROM singer)",
"gold": "SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)",
"em_norm": 1,
"ex": 1
},
{
"idx": 13,
"db_id": "concert_singer",
"question": "What are all the song names by singers who are older than average",
"pred": "SELECT Song_Name FROM singer WHERE Age > (SELECT AVG(Age) FROM singer)",
"gold": "SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)",
"em_norm": 1,
"ex": 1
},
{
"idx": 14,
"db_id": "concert_singer",
"question": "Show location and name for all stadiums with a capacity between 5000 and 10000",
"pred": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000",
"gold": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000",
"em_norm": 1,
"ex": 1
},
{
"idx": 15,
"db_id": "concert_singer",
"question": "What are the locations and names of all stations with capacity between 5000 and 10000",
"pred": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000",
"gold": "SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000",
"em_norm": 1,
"ex": 1
},
{
"idx": 16,
"db_id": "concert_singer",
"question": "What is the maximum capacity and the average of all stadiums",
"pred": "SELECT MAX(capacity), AVG(average) FROM stadium",
"gold": "SELECT MAX(capacity), average FROM stadium",
"em_norm": 0,
"ex": 0
},
{
"idx": 17,
"db_id": "concert_singer",
"question": "What is the average and maximum capacities for all stadiums",
"pred": "SELECT AVG(capacity), MAX(capacity) FROM stadium",
"gold": "SELECT AVG(capacity), MAX(capacity) FROM stadium",
"em_norm": 1,
"ex": 1
},
{
"idx": 18,
"db_id": "concert_singer",
"question": "What is the name and capacity for the stadium with highest average attendance",
"pred": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1",
"gold": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 19,
"db_id": "concert_singer",
"question": "What is the name and capacity for the stadium with the highest average attendance",
"pred": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1",
"gold": "SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 20,
"db_id": "concert_singer",
"question": "How many concerts are there in year 2014 or 2015",
"pred": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015",
"gold": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015",
"em_norm": 1,
"ex": 1
},
{
"idx": 21,
"db_id": "concert_singer",
"question": "How many concerts occurred in 2014 or 2015",
"pred": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015",
"gold": "SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015",
"em_norm": 1,
"ex": 1
},
{
"idx": 22,
"db_id": "concert_singer",
"question": "Show the stadium name and the number of concerts in each stadium",
"pred": "SELECT T2.name, COUNT(*) FROM stadium AS T1 JOIN concert AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id",
"gold": "SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 23,
"db_id": "concert_singer",
"question": "For each stadium, how many concerts play there",
"pred": "SELECT COUNT(*), T1.stadium_id FROM stadium AS T1 JOIN concert AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id",
"gold": "SELECT T2.name, COUNT(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 24,
"db_id": "concert_singer",
"question": "Show the stadium name and capacity with most number of concerts in year 2014 or after",
"pred": "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 T1.stadium_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 25,
"db_id": "concert_singer",
"question": "What is the name and capacity of the stadium with the most concerts after 2013",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 26,
"db_id": "concert_singer",
"question": "Which year has most number of concerts",
"pred": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 27,
"db_id": "concert_singer",
"question": "What is the year that had the most concerts",
"pred": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 28,
"db_id": "concert_singer",
"question": "Show the stadium names without any concert",
"pred": "SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)",
"gold": "SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)",
"em_norm": 1,
"ex": 1
},
{
"idx": 29,
"db_id": "concert_singer",
"question": "What are the names of the stadiums without any concerts",
"pred": "SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)",
"gold": "SELECT name FROM stadium WHERE NOT stadium_id IN (SELECT stadium_id FROM concert)",
"em_norm": 1,
"ex": 1
},
{
"idx": 30,
"db_id": "concert_singer",
"question": "Show countries where a singer above age 40 and a singer below 30 are from",
"pred": "SELECT Country FROM singer WHERE Age > 40 INTERSECT SELECT Country FROM singer WHERE Age 30",
"gold": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30",
"em_norm": 0,
"ex": 0
},
{
"idx": 31,
"db_id": "concert_singer",
"question": "Show names for all stadiums except for stadiums having a concert in year 2014",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 32,
"db_id": "concert_singer",
"question": "What are the names of all stadiums that did not have a concert in 2014",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 33,
"db_id": "concert_singer",
"question": "Show the name and theme for all concerts and the number of singers in each concert",
"pred": "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 T1.Concert_ID",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 34,
"db_id": "concert_singer",
"question": "What are the names , themes , and number of singers for every concert",
"pred": "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 T1.Concert_ID",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 35,
"db_id": "concert_singer",
"question": "List singer names and number of concerts for each singer",
"pred": "SELECT T2.Name, COUNT(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.Name",
"gold": "SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 36,
"db_id": "concert_singer",
"question": "What are the names of the singers and number of concerts for each person",
"pred": "SELECT T2.Name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T2.Name",
"gold": "SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id",
"em_norm": 0,
"ex": 1
},
{
"idx": 37,
"db_id": "concert_singer",
"question": "List all singer names in concerts in year 2014",
"pred": "SELECT T2.Name FROM concert AS T1 JOIN singer_in_concert AS T2 ON T1.concert_id = T2.concert_id WHERE T1.Year = 2014",
"gold": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014",
"em_norm": 0,
"ex": 0
},
{
"idx": 38,
"db_id": "concert_singer",
"question": "What are the names of the singers who performed in a concert in 2014",
"pred": "SELECT T2.Name FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id WHERE T2.Year = 2014",
"gold": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014",
"em_norm": 0,
"ex": 0
},
{
"idx": 39,
"db_id": "concert_singer",
"question": "what is the name and nation of the singer who have a song having 'Hey' in its name",
"pred": "SELECT T1.name, T1.country FROM singer AS T1 JOIN singer_in_concert AS T2 ON T1.singer_id = T2.singer_id WHERE T2.Song_Name LIKE \"%Hey%\"",
"gold": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'",
"em_norm": 0,
"ex": 0
},
{
"idx": 40,
"db_id": "concert_singer",
"question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title",
"pred": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'",
"gold": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'",
"em_norm": 1,
"ex": 1
},
{
"idx": 41,
"db_id": "concert_singer",
"question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 42,
"db_id": "concert_singer",
"question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 43,
"db_id": "concert_singer",
"question": "Find the number of concerts happened in the stadium with the highest capacity",
"pred": "SELECT COUNT(*) FROM stadium ORDER BY capacity DESC LIMIT 1",
"gold": "SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1)",
"em_norm": 0,
"ex": 0
},
{
"idx": 44,
"db_id": "concert_singer",
"question": "What are the number of concerts that occurred in the stadium with the largest capacity",
"pred": "SELECT COUNT(*) FROM stadium AS T1 JOIN concert AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.capacity = (SELECT MAX(capacity) FROM stadium)",
"gold": "SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity DESC LIMIT 1)",
"em_norm": 0,
"ex": 1
},
{
"idx": 45,
"db_id": "pets_1",
"question": "Find the number of pets whose weight is heavier than 10",
"pred": "SELECT COUNT(*) FROM pets WHERE weight > 10",
"gold": "SELECT COUNT(*) FROM pets WHERE weight > 10",
"em_norm": 1,
"ex": 1
},
{
"idx": 46,
"db_id": "pets_1",
"question": "How many pets have a greater weight than 10",
"pred": "SELECT COUNT(*) FROM pets WHERE weight > 10",
"gold": "SELECT COUNT(*) FROM pets WHERE weight > 10",
"em_norm": 1,
"ex": 1
},
{
"idx": 47,
"db_id": "pets_1",
"question": "Find the weight of the youngest dog",
"pred": "SELECT Weight FROM pets ORDER BY Pet_age ASC LIMIT 1",
"gold": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 48,
"db_id": "pets_1",
"question": "How much does the youngest dog weigh",
"pred": "SELECT Weight FROM pets ORDER BY Pet_age ASC LIMIT 1",
"gold": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 49,
"db_id": "pets_1",
"question": "Find the maximum weight for each type of pet. List the maximum weight and pet type",
"pred": "SELECT MAX(weight), pettype FROM pets GROUP BY pettype",
"gold": "SELECT MAX(weight), petType FROM pets GROUP BY petType",
"em_norm": 1,
"ex": 1
},
{
"idx": 50,
"db_id": "pets_1",
"question": "List the maximum weight and type for each type of pet",
"pred": "SELECT MAX(weight), TYPE FROM pets GROUP BY TYPE",
"gold": "SELECT MAX(weight), petType FROM pets GROUP BY petType",
"em_norm": 0,
"ex": 0
},
{
"idx": 51,
"db_id": "pets_1",
"question": "Find number of pets owned by students who are older than 20",
"pred": "SELECT COUNT(*) FROM pets AS T1 JOIN has_pet AS T2 ON T1.petid = T2.petid JOIN student AS T3 ON T3.stuid = T2.stuid WHERE T3.age > 20",
"gold": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20",
"em_norm": 0,
"ex": 1
},
{
"idx": 52,
"db_id": "pets_1",
"question": "How many pets are owned by students that have an age greater than 20",
"pred": "SELECT COUNT(*) FROM has_pet AS T1 JOIN pets AS T2 ON T1.petid = T2.petid JOIN student AS T3 ON T1.stuid = T3.stuid WHERE T3.pet_age > 20",
"gold": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20",
"em_norm": 0,
"ex": 0
},
{
"idx": 53,
"db_id": "pets_1",
"question": "Find the number of dog pets that are raised by female students (with sex F)",
"pred": "SELECT COUNT(*) FROM Pets AS T1 JOIN Has_pet AS T2 ON T1.petid = T2.petid JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.sex = 'F'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 54,
"db_id": "pets_1",
"question": "How many dog pets are raised by female students",
"pred": "SELECT COUNT(*) FROM Pets AS T1 JOIN Has_pet AS T2 ON T1.petid = T2.petid JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.sex = 'F'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 55,
"db_id": "pets_1",
"question": "Find the number of distinct type of pets",
"pred": "SELECT COUNT(DISTINCT pettype) FROM pets",
"gold": "SELECT COUNT(DISTINCT pettype) FROM pets",
"em_norm": 1,
"ex": 1
},
{
"idx": 56,
"db_id": "pets_1",
"question": "How many different types of pet are there",
"pred": "SELECT COUNT(DISTINCT pettype) FROM pets",
"gold": "SELECT COUNT(DISTINCT pettype) FROM pets",
"em_norm": 1,
"ex": 1
},
{
"idx": 57,
"db_id": "pets_1",
"question": "Find the first name of students who have cat or dog pet",
"pred": "SELECT DISTINCT T1.fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID WHERE T2.pettype = \"cat\" OR T2.pettype = \"dog\"",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 58,
"db_id": "pets_1",
"question": "What are the first names of every student who has a cat or dog as a pet",
"pred": "SELECT T1.fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID WHERE T2.pettype = \"cat\" OR T2.pettype = \"dog\"",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 59,
"db_id": "pets_1",
"question": "Find the first name of students who have both cat and dog pets",
"pred": "SELECT DISTINCT T1.fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID WHERE T2.pettype = \"Cat\" INTERSECT SELECT T1.Fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID WHERE T2.pettype = \"Dog\"",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 60,
"db_id": "pets_1",
"question": "What are the students' first names who have both cats and dogs as pets",
"pred": "SELECT DISTINCT T1.fname 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 = \"cat\" INTERSECT SELECT T1.fname FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.pet",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 61,
"db_id": "pets_1",
"question": "Find the major and age of students who do not have a cat pet",
"pred": "SELECT major, age FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_pet)",
"gold": "SELECT major, age FROM student WHERE NOT stuid 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')",
"em_norm": 0,
"ex": 0
},
{
"idx": 62,
"db_id": "pets_1",
"question": "What major is every student who does not own a cat as a pet, and also how old are they",
"pred": "SELECT major, age FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_pet WHERE petType = \"Cat\")",
"gold": "SELECT major, age FROM student WHERE NOT stuid 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')",
"em_norm": 0,
"ex": 0
},
{
"idx": 63,
"db_id": "pets_1",
"question": "Find the id of students who do not have a cat pet",
"pred": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_pet",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 64,
"db_id": "pets_1",
"question": "What are the ids of the students who do not own cats as pets",
"pred": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_pet",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 65,
"db_id": "pets_1",
"question": "Find the first name and age of students who have a dog but do not have a cat as a pet",
"pred": "SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_pet WHERE petType = \"dog\") EXCEPT SELECT StuID FROM Has_pet WHERE petType = \"cat\")",
"gold": "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 NOT T1.stuid 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')",
"em_norm": 0,
"ex": 0
},
{
"idx": 66,
"db_id": "pets_1",
"question": "What is the first name of every student who has a dog but does not have a cat",
"pred": "SELECT fname FROM Student WHERE StuID IN (SELECT StuID FROM Has_pet WHERE petType = \"dog\") EXCEPT SELECT StuID FROM Has_pet WHERE petType = \"cat\")",
"gold": "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 NOT T1.stuid 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')",
"em_norm": 0,
"ex": 0
},
{
"idx": 67,
"db_id": "pets_1",
"question": "Find the type and weight of the youngest pet",
"pred": "SELECT pettype, weight FROM pets ORDER BY pet_age ASC LIMIT 1",
"gold": "SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 68,
"db_id": "pets_1",
"question": "What type of pet is the youngest animal, and how much does it weigh",
"pred": "SELECT pettype, weight FROM pets ORDER BY pet_age ASC LIMIT 1",
"gold": "SELECT pettype, weight FROM pets ORDER BY pet_age LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 69,
"db_id": "pets_1",
"question": "Find the id and weight of all pets whose age is older than 1",
"pred": "SELECT petid, weight FROM pets WHERE pet_age > 1",
"gold": "SELECT petid, weight FROM pets WHERE pet_age > 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 70,
"db_id": "pets_1",
"question": "What is the id and weight of every pet who is older than 1",
"pred": "SELECT petid, weight FROM pets WHERE pet_age > 1",
"gold": "SELECT petid, weight FROM pets WHERE pet_age > 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 71,
"db_id": "pets_1",
"question": "Find the average and maximum age for each type of pet",
"pred": "SELECT pettype, AVG(pet_age), MAX(pet_age) FROM pets GROUP BY pettype",
"gold": "SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype",
"em_norm": 0,
"ex": 0
},
{
"idx": 72,
"db_id": "pets_1",
"question": "What is the average and maximum age for each pet type",
"pred": "SELECT pettype, AVG(pet_age), MAX(pet_age) FROM pets GROUP BY pettype",
"gold": "SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype",
"em_norm": 0,
"ex": 0
},
{
"idx": 73,
"db_id": "pets_1",
"question": "Find the average weight for each pet type",
"pred": "SELECT pettype, AVG(weight) FROM pets GROUP BY pettype",
"gold": "SELECT AVG(weight), pettype FROM pets GROUP BY pettype",
"em_norm": 0,
"ex": 0
},
{
"idx": 74,
"db_id": "pets_1",
"question": "What is the average weight for each type of pet",
"pred": "SELECT pettype, AVG(weight) FROM pets GROUP BY pettype",
"gold": "SELECT AVG(weight), pettype FROM pets GROUP BY pettype",
"em_norm": 0,
"ex": 0
},
{
"idx": 75,
"db_id": "pets_1",
"question": "Find the first name and age of students who have a pet",
"pred": "SELECT DISTINCT T1.fname, T1.age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID",
"gold": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid",
"em_norm": 1,
"ex": 1
},
{
"idx": 76,
"db_id": "pets_1",
"question": "What are the different first names and ages of the students who do have pets",
"pred": "SELECT DISTINCT T1.fname, T1.age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID",
"gold": "SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid",
"em_norm": 1,
"ex": 1
},
{
"idx": 77,
"db_id": "pets_1",
"question": "Find the id of the pet owned by student whose last name is ‘Smith’",
"pred": "SELECT T2.petid FROM Has_pet AS T1 JOIN pets AS T2 ON T1.petid = T2.petid JOIN student AS T3 ON T1.stuid = T3.stuid WHERE T3.lname = 'Smith'",
"gold": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'",
"em_norm": 0,
"ex": 1
},
{
"idx": 78,
"db_id": "pets_1",
"question": "What is the id of the pet owned by the student whose last name is 'Smith'",
"pred": "SELECT T2.petid FROM Has_pet AS T1 JOIN pets AS T2 ON T1.petid = T2.petid JOIN student AS T3 ON T1.stuid = T3.stuid WHERE T3.lname = 'Smith'",
"gold": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'",
"em_norm": 0,
"ex": 1
},
{
"idx": 79,
"db_id": "pets_1",
"question": "Find the number of pets for each student who has any pet and student id",
"pred": "SELECT COUNT(*), T1.StuID FROM Has_pet AS T1 JOIN pets AS T2 ON T1.PetId = T2.PetID GROUP BY T1.StuID",
"gold": "SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid",
"em_norm": 0,
"ex": 1
},
{
"idx": 80,
"db_id": "pets_1",
"question": "For students who have pets , how many pets does each student have ? list their ids instead of names",
"pred": "SELECT COUNT(*), T1.StuID FROM Has_pet AS T1 JOIN pets AS T2 ON T1.PetId = T2.PetID GROUP BY T1.StuID",
"gold": "SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid",
"em_norm": 0,
"ex": 1
},
{
"idx": 81,
"db_id": "pets_1",
"question": "Find the first name and gender of student who have more than one pet",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 82,
"db_id": "pets_1",
"question": "What is the first name and gender of the all the students who have more than one pet",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 83,
"db_id": "pets_1",
"question": "Find the last name of the student who has a cat that is age 3",
"pred": "SELECT lname FROM Student WHERE StuID IN (SELECT StuID FROM Has_pet WHERE Pet_age = 3)",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 84,
"db_id": "pets_1",
"question": "What is the last name of the student who has a cat that is 3 years old",
"pred": "SELECT T2.Lname FROM Has_pet AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.Pet_age = 3",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 85,
"db_id": "pets_1",
"question": "Find the average age of students who do not have any pet",
"pred": "SELECT AVG(age) FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_pet)",
"gold": "SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)",
"em_norm": 1,
"ex": 1
},
{
"idx": 86,
"db_id": "pets_1",
"question": "What is the average age for all students who do not own any pets",
"pred": "SELECT AVG(T1.age) FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.StuID WHERE NOT T2.pet_age IN (SELECT T1.age FROM Student AS T1 JOIN Has_Pet AS T2 ON T1.StuID = T2.petid)",
"gold": "SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet)",
"em_norm": 0,
"ex": 0
},
{
"idx": 87,
"db_id": "car_1",
"question": "How many continents are there",
"pred": "SELECT COUNT(*) FROM continents",
"gold": "SELECT COUNT(*) FROM CONTINENTS",
"em_norm": 1,
"ex": 1
},
{
"idx": 88,
"db_id": "car_1",
"question": "What is the number of continents",
"pred": "SELECT COUNT(*) FROM continents",
"gold": "SELECT COUNT(*) FROM CONTINENTS",
"em_norm": 1,
"ex": 1
},
{
"idx": 89,
"db_id": "car_1",
"question": "How many countries does each continent have? List the continent id, continent name and the number of countries",
"pred": "SELECT T1.continent, COUNT(*) FROM continents AS T1 JOIN countries AS T2 ON T1.contid = T2.continent GROUP BY T1.contid",
"gold": "SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId",
"em_norm": 0,
"ex": 0
},
{
"idx": 90,
"db_id": "car_1",
"question": "For each continent, list its id, name, and how many countries it has",
"pred": "SELECT T1.continent, T1.countryname, COUNT(*) FROM continents AS T1 JOIN countries AS T2 ON T1.contid = T2.continent GROUP BY T1.contid",
"gold": "SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId",
"em_norm": 0,
"ex": 0
},
{
"idx": 91,
"db_id": "car_1",
"question": "How many countries are listed",
"pred": "SELECT COUNT(*) FROM countries",
"gold": "SELECT COUNT(*) FROM COUNTRIES",
"em_norm": 1,
"ex": 1
},
{
"idx": 92,
"db_id": "car_1",
"question": "How many countries exist",
"pred": "SELECT COUNT(*) FROM countries",
"gold": "SELECT COUNT(*) FROM COUNTRIES",
"em_norm": 1,
"ex": 1
},
{
"idx": 93,
"db_id": "car_1",
"question": "How many models does each car maker produce? List maker full name, id and the number",
"pred": "SELECT COUNT(*), T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.maker GROUP BY T1.maker",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 94,
"db_id": "car_1",
"question": "What is the full name of each car maker, along with its id and how many models it produces",
"pred": "SELECT T1.fullname, T1.make, COUNT(*) FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model GROUP BY T1.makemaker",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 95,
"db_id": "car_1",
"question": "Which model of the car has the minimum horsepower",
"pred": "SELECT t1.model FROM model_list AS t1 JOIN car_names AS t2 ON t1.model = t2.model WHERE horsepower = (SELECT MIN(horsepower) FROM cars_data)",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 96,
"db_id": "car_1",
"question": "What is the model of the car with the smallest amount of horsepower",
"pred": "SELECT t3.model FROM car_names AS t1 JOIN model_list AS t2 ON t1.model = t2.model ORDER BY t1.horsepower LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 97,
"db_id": "car_1",
"question": "Find the model of the car whose weight is below the average weight",
"pred": "SELECT DISTINCT model FROM car_names WHERE weight (SELECT AVG(weight) FROM cars_data)",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 98,
"db_id": "car_1",
"question": "What is the model for the car with a weight smaller than the average",
"pred": "SELECT model FROM car_names WHERE weight (SELECT AVG(weight) FROM cars_data)",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 99,
"db_id": "car_1",
"question": "Find the name of the makers that produced some cars in the year of 1970",
"pred": "SELECT T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model WHERE T2.year = 1970",
"gold": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'",
"em_norm": 0,
"ex": 0
},
{
"idx": 100,
"db_id": "car_1",
"question": "What is the name of the different car makers who produced a car in 1970",
"pred": "SELECT DISTINCT T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model WHERE T2.year = 1970",
"gold": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'",
"em_norm": 0,
"ex": 0
},
{
"idx": 101,
"db_id": "car_1",
"question": "Find the make and production time of the cars that were produced in the earliest year",
"pred": "SELECT T1.make, T2.year FROM car_names AS T1 JOIN make AS T2 ON T1.makeid = T2.id ORDER BY T1.year LIMIT 1",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 102,
"db_id": "car_1",
"question": "What is the maker of the carr produced in the earliest year and what year was it",
"pred": "SELECT T1.maker, T1.year FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.maker ORDER BY T2.year LIMIT 1",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 103,
"db_id": "car_1",
"question": "Which distinct car models are the produced after 1980",
"pred": "SELECT DISTINCT model FROM car_names WHERE YEAR > 1980",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 104,
"db_id": "car_1",
"question": "What are the different models for the cards produced after 1980",
"pred": "SELECT DISTINCT T2.model FROM model_list AS T1 JOIN car_makers AS T2 ON T1.make = T2.makeid WHERE T2.year > 1980",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 105,
"db_id": "car_1",
"question": "How many car makers are there in each continents? List the continent name and the count",
"pred": "SELECT T1.continent, COUNT(*) FROM continents AS T1 JOIN car_makers AS T2 ON T1.contid = T2.id GROUP BY T1.contid",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 106,
"db_id": "car_1",
"question": "What is the name of each continent and how many car makers are there in each one",
"pred": "SELECT T1.continent, COUNT(*) FROM continents AS T1 JOIN car_makers AS T2 ON T1.contid = T2.contid GROUP BY T1.continent",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 107,
"db_id": "car_1",
"question": "Which of the countries has the most car makers? List the country name",
"pred": "SELECT T1.countryname FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid GROUP BY T1.countryname ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 108,
"db_id": "car_1",
"question": "What is the name of the country with the most car makers",
"pred": "SELECT T1.countryname FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid GROUP BY T1.countryname ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 109,
"db_id": "car_1",
"question": "How many car models are produced by each maker ? Only list the count and the maker full name",
"pred": "SELECT COUNT(*), T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model GROUP BY T1.maker",
"gold": "SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id",
"em_norm": 0,
"ex": 0
},
{
"idx": 110,
"db_id": "car_1",
"question": "What is the number of car models that are produced by each maker and what is the id and full name of each maker",
"pred": "SELECT COUNT(*), T1.make, T1.fullname FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model GROUP BY T1.makemaker",
"gold": "SELECT COUNT(*), T2.FullName, T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id",
"em_norm": 0,
"ex": 0
},
{
"idx": 111,
"db_id": "car_1",
"question": "What is the accelerate of the car make amc hornet sportabout (sw)",
"pred": "SELECT Accelerate FROM car_names WHERE make = 'amc hornet sportabout (sw)'",
"gold": "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)'",
"em_norm": 0,
"ex": 0
},
{
"idx": 112,
"db_id": "car_1",
"question": "How much does the car accelerate that makes amc hornet sportabout (sw)",
"pred": "SELECT Accelerate FROM car_names WHERE make = 'amc hornet sportabout (sw)'",
"gold": "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)'",
"em_norm": 0,
"ex": 0
},
{
"idx": 113,
"db_id": "car_1",
"question": "How many car makers are there in france",
"pred": "SELECT COUNT(*) FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid WHERE T1.countryname = \"France\"",
"gold": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'",
"em_norm": 0,
"ex": 0
},
{
"idx": 114,
"db_id": "car_1",
"question": "What is the number of makers of care in France",
"pred": "SELECT COUNT(*) FROM countries AS T1 JOIN model_list AS T2 ON T1.country = T2.countryid WHERE T1.countryname = \"France\"",
"gold": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'",
"em_norm": 0,
"ex": 0
},
{
"idx": 115,
"db_id": "car_1",
"question": "How many car models are produced in the usa",
"pred": "SELECT COUNT(*) FROM car_makers AS T1 JOIN countries AS T2 ON T1.country = T2.countryid WHERE T2.countryname = \"USA\"",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 116,
"db_id": "car_1",
"question": "What is the count of the car models produced in the United States",
"pred": "SELECT COUNT(*) FROM car_makers AS T1 JOIN countries AS T2 ON T1.country = T2.countryid WHERE T2.countryname = \"United States\"",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 117,
"db_id": "car_1",
"question": "What is the average miles per gallon(mpg) of the cars with 4 cylinders",
"pred": "SELECT AVG(mpg) FROM cars_data WHERE cylinders = 4",
"gold": "SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4",
"em_norm": 1,
"ex": 1
},
{
"idx": 118,
"db_id": "car_1",
"question": "What is the average miles per gallon of all the cards with 4 cylinders",
"pred": "SELECT AVG(mpg) FROM cars_data WHERE cylinders = 4",
"gold": "SELECT AVG(mpg) FROM CARS_DATA WHERE Cylinders = 4",
"em_norm": 1,
"ex": 1
},
{
"idx": 119,
"db_id": "car_1",
"question": "What is the smallest weight of the car produced with 8 cylinders on 1974",
"pred": "SELECT MIN(weight) FROM car_names AS T1 JOIN make AS T2 ON T1.make = T2.makeid WHERE T2.cylinders = 8 AND YEAR = 1974",
"gold": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974",
"em_norm": 0,
"ex": 0
},
{
"idx": 120,
"db_id": "car_1",
"question": "What is the minimum weight of the car with 8 cylinders produced in 1974",
"pred": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND YEAR = 1974",
"gold": "SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 1974",
"em_norm": 1,
"ex": 1
},
{
"idx": 121,
"db_id": "car_1",
"question": "What are all the makers and models",
"pred": "SELECT T1.maker, T1.model FROM model_list AS T1 JOIN car_makers AS T2 ON T1.id = T2.maker",
"gold": "SELECT Maker, Model FROM MODEL_LIST",
"em_norm": 0,
"ex": 0
},
{
"idx": 122,
"db_id": "car_1",
"question": "What are the makers and models",
"pred": "SELECT T1.maker, T1.model FROM model_list AS T1 JOIN car_makers AS T2 ON T1.id = T2.maker",
"gold": "SELECT Maker, Model FROM MODEL_LIST",
"em_norm": 0,
"ex": 0
},
{
"idx": 123,
"db_id": "car_1",
"question": "What are the countries having at least one car maker? List name and id",
"pred": "SELECT T1.countryname, T1.countryid FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid GROUP BY T1.countryid HAVING COUNT(*) >= 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 124,
"db_id": "car_1",
"question": "What are the names and ids of all countries with at least one car maker",
"pred": "SELECT T1.countryname, T1.countryid FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid GROUP BY T1.countryid HAVING COUNT(*) >= 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 125,
"db_id": "car_1",
"question": "What is the number of the cars with horsepower more than 150",
"pred": "SELECT COUNT(*) FROM car_names WHERE horsepower > 150",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150",
"em_norm": 0,
"ex": 0
},
{
"idx": 126,
"db_id": "car_1",
"question": "What is the number of cars with a horsepower greater than 150",
"pred": "SELECT COUNT(*) FROM cars_data WHERE horsepower > 150",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 150",
"em_norm": 1,
"ex": 1
},
{
"idx": 127,
"db_id": "car_1",
"question": "What is the average weight of cars each year",
"pred": "SELECT AVG(weight), YEAR FROM cars_data GROUP BY YEAR",
"gold": "SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR",
"em_norm": 1,
"ex": 1
},
{
"idx": 128,
"db_id": "car_1",
"question": "What is the average weight and year for each year",
"pred": "SELECT AVG(weight), YEAR FROM cars_data GROUP BY YEAR",
"gold": "SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR",
"em_norm": 1,
"ex": 1
},
{
"idx": 129,
"db_id": "car_1",
"question": "Which countries in europe have at least 3 car manufacturers",
"pred": "SELECT T1.countryname FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid WHERE T1.country = \"Europe\" GROUP BY T1.countryname HAVING COUNT(*) >= 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 130,
"db_id": "car_1",
"question": "What are the names of all European countries with at least 3 manufacturers",
"pred": "SELECT countryname FROM countries WHERE countryname = 'Europe' GROUP BY countryname HAVING COUNT(*) >= 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 131,
"db_id": "car_1",
"question": "What is the maximum horsepower and the make of the car models with 3 cylinders",
"pred": "SELECT MAX(horsepower), MAX(make) FROM car_names WHERE cylinders = 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 132,
"db_id": "car_1",
"question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it",
"pred": "SELECT MAX(HPV), T1.make FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.modelId WHERE T2.cylinders = 3 GROUP BY T1.make",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 133,
"db_id": "car_1",
"question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon",
"pred": "SELECT t1.model FROM model_list AS t1 JOIN cars_data AS t2 ON t1.model = t2.model WHERE t2.mpg = (SELECT MAX(mpg) FROM cars_data)",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 134,
"db_id": "car_1",
"question": "What is the car model with the highest mpg",
"pred": "SELECT t1.model FROM car_names AS t1 JOIN model_list AS t2 ON t1.model = t2.model ORDER BY t2.mpg DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 135,
"db_id": "car_1",
"question": "What is the average horsepower of the cars before 1980",
"pred": "SELECT AVG(horsepower) FROM cars_data WHERE YEAR 1980",
"gold": "SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980",
"em_norm": 0,
"ex": 0
},
{
"idx": 136,
"db_id": "car_1",
"question": "What is the average horsepower for all cars produced before 1980",
"pred": "SELECT AVG(horsepower) FROM car_names WHERE YEAR 1980",
"gold": "SELECT AVG(horsepower) FROM cars_data WHERE year < 1980",
"em_norm": 0,
"ex": 0
},
{
"idx": 137,
"db_id": "car_1",
"question": "What is the average edispl of the cars of model volvo",
"pred": "SELECT AVG(T2.edispl) FROM model_list AS T1 JOIN car_names AS T2 ON T1.model = T2.model WHERE T1.make = \"Volvo\"",
"gold": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'",
"em_norm": 0,
"ex": 0
},
{
"idx": 138,
"db_id": "car_1",
"question": "What is the average edispl for all volvos",
"pred": "SELECT AVG(edispl) FROM cars_data WHERE make = \"Volvo\"",
"gold": "SELECT AVG(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo'",
"em_norm": 0,
"ex": 0
},
{
"idx": 139,
"db_id": "car_1",
"question": "What is the maximum accelerate for different number of cylinders",
"pred": "SELECT MAX(accurate), COUNT(*) FROM cars_data GROUP BY cylinders",
"gold": "SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders",
"em_norm": 0,
"ex": 0
},
{
"idx": 140,
"db_id": "car_1",
"question": "What is the maximum accelerate for all the different cylinders",
"pred": "SELECT MAX(accurate), cylinders FROM cars_data GROUP BY cylinders",
"gold": "SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders",
"em_norm": 0,
"ex": 0
},
{
"idx": 141,
"db_id": "car_1",
"question": "Which model has the most version(make) of cars",
"pred": "SELECT T2.model FROM car_names AS T1 JOIN model_list AS T2 ON T1.model = T2.model GROUP BY T2.model ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 142,
"db_id": "car_1",
"question": "What model has the most different versions",
"pred": "SELECT model FROM model_list GROUP BY model ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 143,
"db_id": "car_1",
"question": "How many cars have more than 4 cylinders",
"pred": "SELECT COUNT(*) FROM cars_data WHERE cylinders > 4",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4",
"em_norm": 1,
"ex": 1
},
{
"idx": 144,
"db_id": "car_1",
"question": "What is the number of cars with more than 4 cylinders",
"pred": "SELECT COUNT(*) FROM cars_data WHERE cylinders > 4",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 4",
"em_norm": 1,
"ex": 1
},
{
"idx": 145,
"db_id": "car_1",
"question": "how many cars were produced in 1980",
"pred": "SELECT COUNT(*) FROM car_names WHERE YEAR = 1980",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980",
"em_norm": 0,
"ex": 0
},
{
"idx": 146,
"db_id": "car_1",
"question": "In 1980, how many cars were made",
"pred": "SELECT COUNT(*) FROM car_makers WHERE YEAR = 1980",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE YEAR = 1980",
"em_norm": 0,
"ex": 0
},
{
"idx": 147,
"db_id": "car_1",
"question": "How many car models were produced by the maker with full name American Motor Company",
"pred": "SELECT COUNT(*) FROM car_makers AS T1 JOIN model_list AS T2 ON T1.maker = T2.id WHERE T1.fullname = 'American Motor Company'",
"gold": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'",
"em_norm": 0,
"ex": 0
},
{
"idx": 148,
"db_id": "car_1",
"question": "What is the number of car models created by the car maker American Motor Company",
"pred": "SELECT COUNT(*) FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model WHERE T1.maker = \"American Motor Company\"",
"gold": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'",
"em_norm": 0,
"ex": 0
},
{
"idx": 149,
"db_id": "car_1",
"question": "Which makers designed more than 3 car models? List full name and the id",
"pred": "SELECT T1.maker, T1.fullname, T1.id FROM car_makers AS T1 JOIN model_list AS T2 ON T1.maker = T2.id GROUP BY T1.maker HAVING COUNT(*) > 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 150,
"db_id": "car_1",
"question": "What are the names and ids of all makers with more than 3 models",
"pred": "SELECT T1.maker, T1.id FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.modelid GROUP BY T1.maker HAVING COUNT(*) > 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 151,
"db_id": "car_1",
"question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500",
"pred": "SELECT DISTINCT T2.model FROM car_makers AS T1 JOIN model_list AS T2 ON T1.make = T2.makeid WHERE T1.fullname = \"General Motors\" OR T1.weight > 3500",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 152,
"db_id": "car_1",
"question": "What are the different models created by either the car maker General Motors or weighed more than 3500",
"pred": "SELECT DISTINCT T2.model FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model WHERE T1.maker = \"General Motors\" OR T1.weight > 3500",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 153,
"db_id": "car_1",
"question": "In which years cars were produced weighing no less than 3000 and no more than 4000",
"pred": "SELECT YEAR FROM car_makers WHERE weight 3000 INTERSECT SELECT YEAR FROM car_makers WHERE weight 4000",
"gold": "SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000",
"em_norm": 0,
"ex": 0
},
{
"idx": 154,
"db_id": "car_1",
"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",
"pred": "SELECT DISTINCT YEAR FROM car_makers WHERE weight 4000 INTERSECT SELECT DISTINCT YEAR FROM car_makers WHERE weight > 3000",
"gold": "SELECT DISTINCT year FROM cars_data WHERE weight BETWEEN 3000 AND 4000",
"em_norm": 0,
"ex": 0
},
{
"idx": 155,
"db_id": "car_1",
"question": "What is the horsepower of the car with the largest accelerate",
"pred": "SELECT horsepower FROM cars_data ORDER BY accelerate DESC LIMIT 1",
"gold": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 156,
"db_id": "car_1",
"question": "What is the horsepower of the car with the greatest accelerate",
"pred": "SELECT horsepower FROM cars_data ORDER BY accelerate DESC LIMIT 1",
"gold": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 157,
"db_id": "car_1",
"question": "For model volvo, how many cylinders does the car with the least accelerate have",
"pred": "SELECT COUNT(*), T1.model FROM car_names AS T1 JOIN model_list AS T2 ON T1.model = T2.model WHERE T1.make = \"Volvo\" GROUP BY T1.model ORDER BY SUM(T1.accelerated) LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 158,
"db_id": "car_1",
"question": "For a volvo model, how many cylinders does the version with least accelerate have",
"pred": "SELECT t2.cylinders FROM model_list AS t1 JOIN car_names AS t2 ON t1.model = t2.model WHERE t2.make = \"Volvo\" ORDER BY t2.accurate LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 159,
"db_id": "car_1",
"question": "How many cars have a larger accelerate than the car with the largest horsepower",
"pred": "SELECT COUNT(*) FROM cars_data WHERE accelerate > (SELECT MAX(horsepower) FROM cars_data)",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)",
"em_norm": 0,
"ex": 0
},
{
"idx": 160,
"db_id": "car_1",
"question": "What is the number of cars with a greater accelerate than the one with the most horsepower",
"pred": "SELECT COUNT(*) FROM cars_data WHERE accelerate > (SELECT MAX(horsepower) FROM cars_data)",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)",
"em_norm": 0,
"ex": 0
},
{
"idx": 161,
"db_id": "car_1",
"question": "How many countries has more than 2 car makers",
"pred": "SELECT COUNT(*) FROM countries WHERE countryID IN (SELECT countryID FROM car_makers GROUP BY countryID HAVING COUNT(*) > 2)",
"gold": "SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 162,
"db_id": "car_1",
"question": "What is the number of countries with more than 2 car makers",
"pred": "SELECT COUNT(*) FROM countries WHERE maker > 2",
"gold": "SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 163,
"db_id": "car_1",
"question": "How many cars has over 6 cylinders",
"pred": "SELECT COUNT(*) FROM cars_data WHERE cylinders > 6",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6",
"em_norm": 1,
"ex": 1
},
{
"idx": 164,
"db_id": "car_1",
"question": "What is the number of carsw ith over 6 cylinders",
"pred": "SELECT COUNT(*) FROM cars_data WHERE cylinders > 6",
"gold": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6",
"em_norm": 1,
"ex": 1
},
{
"idx": 165,
"db_id": "car_1",
"question": "For the cars with 4 cylinders, which model has the largest horsepower",
"pred": "SELECT t3.model FROM cars_data AS t1 JOIN model_list AS t2 ON t1.model = t2.model WHERE t1.cylinders = 4 AND horsepower = (SELECT MAX(horsepower) FROM car_names)",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 166,
"db_id": "car_1",
"question": "For all of the 4 cylinder cars, which model has the most horsepower",
"pred": "SELECT t1.model FROM car_names AS t1 JOIN model_list AS t2 ON t1.model = t2.model WHERE t1.cylinders = 4 AND horsepower = (SELECT MAX(horsepower) FROM car_names)",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 167,
"db_id": "car_1",
"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",
"pred": "SELECT T1.make, T1.make FROM car_names AS T1 JOIN cars_data AS T2 ON T1.id = T2.makeid WHERE T2.horsepower > 3 EXCEPT SELECT T1.make, T1.make FROM car_names AS T1 JOIN cars_data AS T2 ON T1.id = T2.makeid WHERE T2.horsepower > 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 168,
"db_id": "car_1",
"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",
"pred": "SELECT DISTINCT T1.make, T1.make FROM car_names AS T1 JOIN cars_data AS T2 ON T1.id = T2.makeid WHERE T2.horsepower 4",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 169,
"db_id": "car_1",
"question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980",
"pred": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR YEAR 1980",
"gold": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980",
"em_norm": 0,
"ex": 0
},
{
"idx": 170,
"db_id": "car_1",
"question": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980",
"pred": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 UNION SELECT MPG FROM cars_data WHERE YEAR 1980",
"gold": "SELECT MAX(mpg) FROM cars_data WHERE cylinders = 8 OR year < 1980",
"em_norm": 0,
"ex": 0
},
{
"idx": 171,
"db_id": "car_1",
"question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'",
"pred": "SELECT model FROM model_list WHERE weight 3500 EXCEPT SELECT model FROM model_list WHERE maker = 'Ford Motor Company'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 172,
"db_id": "car_1",
"question": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company",
"pred": "SELECT DISTINCT T2.model FROM car_names AS T1 JOIN model_list AS T2 ON T1.model = T2.model WHERE T1.weight 3500 EXCEPT SELECT DISTINCT T2.model FROM car_makers AS T1 JOIN model_list AS T2 ON T1.model = T2.model WHERE T1.maker = \"Ford Motor Company\"",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 173,
"db_id": "car_1",
"question": "What are the name of the countries where there is not a single car maker",
"pred": "SELECT countryname FROM countries EXCEPT SELECT T1.countryname FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid",
"gold": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country",
"em_norm": 0,
"ex": 0
},
{
"idx": 174,
"db_id": "car_1",
"question": "What are the names of the countries with no car makers",
"pred": "SELECT countryname FROM countries WHERE NOT countryid IN (SELECT countryid FROM car_makers)",
"gold": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country",
"em_norm": 0,
"ex": 0
},
{
"idx": 175,
"db_id": "car_1",
"question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker",
"pred": "SELECT T1.id, T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model 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.model GROUP BY T1.id HAVING COUNT(*) >= 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 176,
"db_id": "car_1",
"question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars",
"pred": "SELECT T1.id, T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model GROUP BY T1.maker HAVING COUNT(*) >= 2 INTERSECT SELECT T1.id, T1.maker FROM car_makers AS T1 JOIN model_list AS T2 ON T1.id = T2.model GROUP BY T1.maker HAVING COUNT(*) >= 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 177,
"db_id": "car_1",
"question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model",
"pred": "SELECT T1.countryid, T1.countryname FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid WHERE T2.make = 'Fiat' GROUP BY T1.countryid HAVING COUNT(*) > 3 UNION SELECT T1.countryid, T1.countryname FROM countries AS T1 JOIN model_list AS T2 ON T1.country = T2.model WHERE T2.model = 'Fiat'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 178,
"db_id": "car_1",
"question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model",
"pred": "SELECT T1.countryid, T1.countryname FROM countries AS T1 JOIN car_makers AS T2 ON T1.country = T2.countryid GROUP BY T1.countryid HAVING COUNT(*) > 3 UNION SELECT T1.countryid, T1.countryname FROM countries AS T1 JOIN model_list AS T2 ON T1.country = T2.modelid WHERE T2.make = \"Fiat\"",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 179,
"db_id": "flight_2",
"question": "Which country does Airline \"JetBlue Airways\" belong to",
"pred": "SELECT country FROM airlines WHERE airline = \"JetBlue Airways\"",
"gold": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 180,
"db_id": "flight_2",
"question": "What country is Jetblue Airways affiliated with",
"pred": "SELECT country FROM airlines WHERE airline = 'Jetblue Airways'",
"gold": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\"",
"em_norm": 1,
"ex": 0
},
{
"idx": 181,
"db_id": "flight_2",
"question": "What is the abbreviation of Airline \"JetBlue Airways\"",
"pred": "SELECT abbreviation FROM airlines WHERE airline = \"JetBlue Airways\"",
"gold": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 182,
"db_id": "flight_2",
"question": "Which abbreviation corresponds to Jetblue Airways",
"pred": "SELECT abbreviation FROM airlines WHERE airline = 'Jitblue Airways'",
"gold": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 183,
"db_id": "flight_2",
"question": "List all airline names and their abbreviations in \"USA\"",
"pred": "SELECT airline, abbreviation FROM airlines WHERE country = \"USA\"",
"gold": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = \"USA\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 184,
"db_id": "flight_2",
"question": "What are the airline names and abbreviations for airlines in the USA",
"pred": "SELECT airline, abbreviation FROM airlines WHERE country = 'USA'",
"gold": "SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = \"USA\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 185,
"db_id": "flight_2",
"question": "List the airport code and name in the city of Anthony",
"pred": "SELECT airportcode, airportname FROM airports WHERE city = 'Anthony'",
"gold": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = \"Anthony\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 186,
"db_id": "flight_2",
"question": "Give the airport code and airport name corresonding to the city Anthony",
"pred": "SELECT airportcode, airportname FROM airports WHERE city = 'Anthony'",
"gold": "SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = \"Anthony\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 187,
"db_id": "flight_2",
"question": "How many airlines do we have",
"pred": "SELECT COUNT(*) FROM airlines",
"gold": "SELECT COUNT(*) FROM AIRLINES",
"em_norm": 1,
"ex": 1
},
{
"idx": 188,
"db_id": "flight_2",
"question": "What is the total number of airlines",
"pred": "SELECT COUNT(*) FROM airlines",
"gold": "SELECT COUNT(*) FROM AIRLINES",
"em_norm": 1,
"ex": 1
},
{
"idx": 189,
"db_id": "flight_2",
"question": "How many airports do we have",
"pred": "SELECT COUNT(*) FROM airports",
"gold": "SELECT COUNT(*) FROM AIRPORTS",
"em_norm": 1,
"ex": 1
},
{
"idx": 190,
"db_id": "flight_2",
"question": "Return the number of airports",
"pred": "SELECT COUNT(*) FROM airports",
"gold": "SELECT COUNT(*) FROM AIRPORTS",
"em_norm": 1,
"ex": 1
},
{
"idx": 191,
"db_id": "flight_2",
"question": "How many flights do we have",
"pred": "SELECT COUNT(*) FROM flights",
"gold": "SELECT COUNT(*) FROM FLIGHTS",
"em_norm": 1,
"ex": 1
},
{
"idx": 192,
"db_id": "flight_2",
"question": "Return the number of flights",
"pred": "SELECT COUNT(*) FROM flights",
"gold": "SELECT COUNT(*) FROM FLIGHTS",
"em_norm": 1,
"ex": 1
},
{
"idx": 193,
"db_id": "flight_2",
"question": "Which airline has abbreviation 'UAL'",
"pred": "SELECT airline FROM airlines WHERE abbreviation = 'UAL'",
"gold": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 194,
"db_id": "flight_2",
"question": "Give the airline with abbreviation 'UAL'",
"pred": "SELECT airline FROM airlines WHERE abbreviation = 'UAL'",
"gold": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 195,
"db_id": "flight_2",
"question": "How many airlines are from USA",
"pred": "SELECT COUNT(*) FROM airlines WHERE country = \"USA\"",
"gold": "SELECT COUNT(*) FROM AIRLINES WHERE Country = \"USA\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 196,
"db_id": "flight_2",
"question": "Return the number of airlines in the USA",
"pred": "SELECT COUNT(*) FROM airlines WHERE country = \"USA\"",
"gold": "SELECT COUNT(*) FROM AIRLINES WHERE Country = \"USA\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 197,
"db_id": "flight_2",
"question": "Which city and country is the Alton airport at",
"pred": "SELECT city, country FROM airports WHERE airportname = 'Altons'",
"gold": "SELECT City, Country FROM AIRPORTS WHERE AirportName = \"Alton\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 198,
"db_id": "flight_2",
"question": "Give the city and country for the Alton airport",
"pred": "SELECT city, country FROM airports WHERE airportname = 'Alton'",
"gold": "SELECT City, Country FROM AIRPORTS WHERE AirportName = \"Alton\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 199,
"db_id": "flight_2",
"question": "What is the airport name for airport 'AKO'",
"pred": "SELECT airportname FROM airports WHERE airportname = 'AKO'",
"gold": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 200,
"db_id": "flight_2",
"question": "Return the name of the airport with code 'AKO'",
"pred": "SELECT airportname FROM airports WHERE airportcode = 'AKO'",
"gold": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 201,
"db_id": "flight_2",
"question": "What are airport names at City 'Aberdeen'",
"pred": "SELECT airportname FROM airports WHERE city = 'Aberdeen'",
"gold": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 202,
"db_id": "flight_2",
"question": "What are the names of airports in Aberdeen",
"pred": "SELECT airportname FROM airports WHERE city = 'Aberdeen'",
"gold": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 203,
"db_id": "flight_2",
"question": "How many flights depart from 'APG'",
"pred": "SELECT COUNT(*) FROM flights WHERE abbreviation = 'APG'",
"gold": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 204,
"db_id": "flight_2",
"question": "Count the number of flights departing from 'APG'",
"pred": "SELECT COUNT(*) FROM flights WHERE abbreviation = 'APG'",
"gold": "SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = \"APG\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 205,
"db_id": "flight_2",
"question": "How many flights have destination ATO",
"pred": "SELECT COUNT(*) FROM flights AS T1 JOIN airports AS T2 ON T1.airportcode = T2.sourceairport WHERE T2.country = \"ATO\"",
"gold": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 206,
"db_id": "flight_2",
"question": "Count the number of flights into ATO",
"pred": "SELECT COUNT(*) FROM flights WHERE airportcode = 'ATO'",
"gold": "SELECT COUNT(*) FROM FLIGHTS WHERE DestAirport = \"ATO\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 207,
"db_id": "flight_2",
"question": "How many flights depart from City Aberdeen",
"pred": "SELECT COUNT(*) FROM airports WHERE city = \"Aberdeen\"",
"gold": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 208,
"db_id": "flight_2",
"question": "Return the number of flights departing from Aberdeen",
"pred": "SELECT COUNT(*) FROM flights WHERE airports = \"Aberdeen\"",
"gold": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 209,
"db_id": "flight_2",
"question": "How many flights arriving in Aberdeen city",
"pred": "SELECT COUNT(*) FROM airports WHERE city = 'Aberdeen'",
"gold": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 210,
"db_id": "flight_2",
"question": "Return the number of flights arriving in Aberdeen",
"pred": "SELECT COUNT(*) FROM airports AS T1 JOIN flights AS T2 ON T1.airport = T2.sourceairport WHERE T1.city = \"Aberdeen\"",
"gold": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 211,
"db_id": "flight_2",
"question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'",
"pred": "SELECT COUNT(*) FROM flights AS T1 JOIN airports AS T2 ON T1.airport = T2.sourceairport WHERE T2.city = 'Aberdeen' AND T2.airportcode = 'Ashley'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 212,
"db_id": "flight_2",
"question": "How many flights fly from Aberdeen to Ashley",
"pred": "SELECT COUNT(*) FROM airports AS T1 JOIN flights AS T2 ON T1.airport = T2.sourceairport WHERE T1.airportcode = \"Ashley\" AND T1.city = \"Aberdeen\"",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 213,
"db_id": "flight_2",
"question": "How many flights does airline 'JetBlue Airways' have",
"pred": "SELECT COUNT(*) FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.sourceairport WHERE T1.airline = 'JetBlue Airways'",
"gold": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 214,
"db_id": "flight_2",
"question": "Give the number of Jetblue Airways flights",
"pred": "SELECT COUNT(*) FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.sourceairport WHERE T1.abbreviation = \"Jitblue Airways\"",
"gold": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 215,
"db_id": "flight_2",
"question": "How many 'United Airlines' flights go to Airport 'ASY'",
"pred": "SELECT COUNT(*) FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.unitedairport WHERE T1.airportname = 'ASY'",
"gold": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 216,
"db_id": "flight_2",
"question": "Count the number of United Airlines flights arriving in ASY Airport",
"pred": "SELECT COUNT(*) FROM airports AS T1 JOIN flights AS T2 ON T1.airport = T2.sourceairport WHERE T1.airportname = \"ASY\" AND T2.abbreviation = \"United Airlines\"",
"gold": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 217,
"db_id": "flight_2",
"question": "How many 'United Airlines' flights depart from Airport 'AHD'",
"pred": "SELECT COUNT(*) FROM flights AS T1 JOIN airports AS T2 ON T1.airport = T2.sourceairport WHERE T2.airportcode = 'AHD' AND T1.uid = 'United Airlines'",
"gold": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 218,
"db_id": "flight_2",
"question": "Return the number of United Airlines flights leaving from AHD Airport",
"pred": "SELECT COUNT(*) FROM flights AS T1 JOIN airports AS T2 ON T1.airport = T2.airportcode JOIN airlines AS T3 ON T1.uid = T3.uid WHERE T2.airportname = 'AHD Airport' AND T3.airportname = 'United Airlines'",
"gold": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 219,
"db_id": "flight_2",
"question": "How many United Airlines flights go to City 'Aberdeen'",
"pred": "SELECT COUNT(*) FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.united airlines WHERE T1.city = 'Aberdeen'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 220,
"db_id": "flight_2",
"question": "Count the number of United Airlines flights that arrive in Aberdeen",
"pred": "SELECT COUNT(*) FROM flights AS T1 JOIN airports AS T2 ON T1.airport = T2.sourceairport WHERE T2.airportcode = \"Aberdeen\" AND T1.uid = \"United Airlines\"",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 221,
"db_id": "flight_2",
"question": "Which city has most number of arriving flights",
"pred": "SELECT city FROM flights GROUP BY city ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 222,
"db_id": "flight_2",
"question": "Which city has the most frequent destination airport",
"pred": "SELECT city FROM airports ORDER BY airportname DESC LIMIT 1",
"gold": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 223,
"db_id": "flight_2",
"question": "Which city has most number of departing flights",
"pred": "SELECT T1.city FROM airports AS T1 JOIN flights AS T2 ON T1.airportcode = T2.sourceairport WHERE T2.flightno = (SELECT MAX(flightno) FROM flights)",
"gold": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 224,
"db_id": "flight_2",
"question": "Which city is the most frequent source airport",
"pred": "SELECT T1.city FROM airports AS T1 JOIN flights AS T2 ON T1.airport = T2.sourceairport GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 225,
"db_id": "flight_2",
"question": "What is the code of airport that has the highest number of flights",
"pred": "SELECT airportcode FROM airports GROUP BY airportcode ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 226,
"db_id": "flight_2",
"question": "What is the airport code of the airport with the most flights",
"pred": "SELECT airportcode FROM airports GROUP BY airportcode ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 227,
"db_id": "flight_2",
"question": "What is the code of airport that has fewest number of flights",
"pred": "SELECT airportcode FROM airports ORDER BY flightno ASC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 228,
"db_id": "flight_2",
"question": "Give the code of the airport with the least flights",
"pred": "SELECT airportcode FROM airports GROUP BY airportcode ORDER BY COUNT(*) LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 229,
"db_id": "flight_2",
"question": "Which airline has most number of flights",
"pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.Airline = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 230,
"db_id": "flight_2",
"question": "What airline serves the most flights",
"pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.Airline = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 231,
"db_id": "flight_2",
"question": "Find the abbreviation and country of the airline that has fewest number of flights",
"pred": "SELECT abbreviation, country FROM airlines GROUP BY abbreviation ORDER BY COUNT(*) LIMIT 1",
"gold": "SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 232,
"db_id": "flight_2",
"question": "What is the abbreviation of the airilne has the fewest flights and what country is it in",
"pred": "SELECT abbreviation, country FROM flights GROUP BY abbreviation ORDER BY COUNT(*) ASC LIMIT 1",
"gold": "SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 233,
"db_id": "flight_2",
"question": "What are airlines that have some flight departing from airport 'AHD'",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.flightno WHERE T2.airportname = 'AHD'",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 234,
"db_id": "flight_2",
"question": "Which airlines have a flight with source airport AHD",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.flightno WHERE T2.sourceairport = 'AHD'",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 235,
"db_id": "flight_2",
"question": "What are airlines that have flights arriving at airport 'AHD'",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.flightno JOIN airports AS T3 ON T2.airportcode = T3.airportcode WHERE T3.airportname = 'AHD'",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 236,
"db_id": "flight_2",
"question": "Which airlines have a flight with destination airport AHD",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.flightno JOIN airports AS T3 ON T2.sourceairport = T3.airportcode WHERE T3.airportname = 'AHD'",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 237,
"db_id": "flight_2",
"question": "Find all airlines that have flights from both airports 'APG' and 'CVO'",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.flightno WHERE T2.airportname = 'APG' INTERSECT SELECT T1.airline FROM airlines AS T1 JOIN airports AS T2 ON T1.airportcode = T2.airportcode WHERE T2.airportname = 'CVO'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 238,
"db_id": "flight_2",
"question": "Which airlines have departing flights from both APG and CVO airports",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.flightno WHERE T2.airportcode = 'APG' INTERSECT SELECT T1.airline FROM airlines AS T1 JOIN airports AS T2 ON T1.airport = T2.airportcode WHERE T2.airportname = 'CVO'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 239,
"db_id": "flight_2",
"question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN flights AS T2 ON T1.uid = T2.flightno WHERE T2.airportcode = 'CVO' EXCEPT SELECT T1.airline FROM airlines AS T1 JOIN airports AS T2 ON T1.airportcode = T2.sourceairport WHERE T2.airportname = 'APG'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 240,
"db_id": "flight_2",
"question": "Which airlines have departures from CVO but not from APG airports",
"pred": "SELECT T1.airline FROM airlines AS T1 JOIN airports AS T2 ON T1.uid = T2.sourceairport WHERE T2.airportcode = \"CVO\" EXCEPT SELECT T1.airline FROM airlines AS T1 JOIN airports AS T2 ON T1.uid = T2.sourceairport WHERE T2.airportcode = \"APG\"",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 241,
"db_id": "flight_2",
"question": "Find all airlines that have at least 10 flights",
"pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.UID = T2.FlightNo GROUP BY T1.Airline HAVING COUNT(*) >= 10",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10",
"em_norm": 0,
"ex": 0
},
{
"idx": 242,
"db_id": "flight_2",
"question": "Which airlines have at least 10 flights",
"pred": "SELECT T1.Airline FROM airlines AS T1 JOIN flights AS T2 ON T1.UID = T2.FlightNo GROUP BY T1.Airline HAVING COUNT(*) >= 10",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) > 10",
"em_norm": 0,
"ex": 0
},
{
"idx": 243,
"db_id": "flight_2",
"question": "Find all airlines that have fewer than 200 flights",
"pred": "SELECT airline FROM flights GROUP BY airline HAVING COUNT(*) 200",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200",
"em_norm": 0,
"ex": 0
},
{
"idx": 244,
"db_id": "flight_2",
"question": "Which airlines have less than 200 flights",
"pred": "SELECT airline FROM flights GROUP BY airline HAVING COUNT(*) 200",
"gold": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200",
"em_norm": 0,
"ex": 0
},
{
"idx": 245,
"db_id": "flight_2",
"question": "What are flight numbers of Airline \"United Airlines\"",
"pred": "SELECT T1.flightno FROM flights AS T1 JOIN airlines AS T2 ON T1.uid = T2.airline WHERE T2.name = \"United Airlines\"",
"gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 246,
"db_id": "flight_2",
"question": "Which flight numbers correspond to United Airlines flights",
"pred": "SELECT T1.flightno FROM flights AS T1 JOIN airlines AS T2 ON T1.uid = T2.airline WHERE T2.name = 'United Airlines'",
"gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 247,
"db_id": "flight_2",
"question": "What are flight numbers of flights departing from Airport \"APG\"",
"pred": "SELECT T1.FlightNo FROM flights AS T1 JOIN airports AS T2 ON T1.Airport = T2.AirportCode WHERE T2.AirportName = \"APG\"",
"gold": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 248,
"db_id": "flight_2",
"question": "Give the flight numbers of flights leaving from APG",
"pred": "SELECT flightno FROM flights WHERE sourceairport = \"APG\"",
"gold": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 249,
"db_id": "flight_2",
"question": "What are flight numbers of flights arriving at Airport \"APG\"",
"pred": "SELECT T1.flightno FROM flights AS T1 JOIN airports AS T2 ON T1.airport = T2.airportcode WHERE T2.airportname = \"APG\"",
"gold": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 250,
"db_id": "flight_2",
"question": "Give the flight numbers of flights landing at APG",
"pred": "SELECT T1.FlightNo FROM flights AS T1 JOIN airports AS T2 ON T1.Airport = T2.AirportCode WHERE T2.AirportName = \"APG\"",
"gold": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 251,
"db_id": "flight_2",
"question": "What are flight numbers of flights departing from City \"Aberdeen \"",
"pred": "SELECT T1.flightno FROM flights AS T1 JOIN airports AS T2 ON T1.sourceairport = T2.airportcode WHERE T2.city = \"Aberdeen\"",
"gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 252,
"db_id": "flight_2",
"question": "Give the flight numbers of flights leaving from Aberdeen",
"pred": "SELECT T1.FlightNo FROM flights AS T1 JOIN airports AS T2 ON T1.Airport = T2.AirportCode WHERE T2.AirportName = \"Aberdeen\"",
"gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 253,
"db_id": "flight_2",
"question": "What are flight numbers of flights arriving at City \"Aberdeen\"",
"pred": "SELECT T1.flightno FROM flights AS T1 JOIN airports AS T2 ON T1.airport = T2.airportcode WHERE T2.city = \"Aberdeen\"",
"gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 254,
"db_id": "flight_2",
"question": "Give the flight numbers of flights arriving in Aberdeen",
"pred": "SELECT T1.FlightNo FROM flights AS T1 JOIN airports AS T2 ON T1.Airport = T2.AirportCode WHERE T2.AirportName = \"Aberdeen\"",
"gold": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 255,
"db_id": "flight_2",
"question": "Find the number of flights landing in the city of Aberdeen or Abilene",
"pred": "SELECT COUNT(*) FROM airports AS T1 JOIN flights AS T2 ON T1.airport = T2.sourceairport WHERE T1.city = \"Aberdeen\" OR T1.airportcode = \"Abilene\"",
"gold": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 256,
"db_id": "flight_2",
"question": "How many flights land in Aberdeen or Abilene",
"pred": "SELECT COUNT(*) FROM airports AS T1 JOIN flights AS T2 ON T1.airport = T2.sourceairport WHERE T1.city = \"Aberdeen\" OR T1.airportcode = \"Abilene\"",
"gold": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 257,
"db_id": "flight_2",
"question": "Find the name of airports which do not have any flight in and out",
"pred": "SELECT airportname FROM airports WHERE NOT airportcode IN (SELECT airportcode FROM flights)",
"gold": "SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)",
"em_norm": 0,
"ex": 0
},
{
"idx": 258,
"db_id": "flight_2",
"question": "Which airports do not have departing or arriving flights",
"pred": "SELECT airportname FROM airports WHERE NOT airportcode IN (SELECT airportcode FROM flights WHERE flightno > 0) OR flightno > 0",
"gold": "SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)",
"em_norm": 0,
"ex": 0
},
{
"idx": 259,
"db_id": "employee_hire_evaluation",
"question": "How many employees are there",
"pred": "SELECT COUNT(*) FROM employee",
"gold": "SELECT COUNT(*) FROM employee",
"em_norm": 1,
"ex": 1
},
{
"idx": 260,
"db_id": "employee_hire_evaluation",
"question": "Count the number of employees",
"pred": "SELECT COUNT(*) FROM employee",
"gold": "SELECT COUNT(*) FROM employee",
"em_norm": 1,
"ex": 1
},
{
"idx": 261,
"db_id": "employee_hire_evaluation",
"question": "Sort employee names by their age in ascending order",
"pred": "SELECT Name FROM employee ORDER BY Age ASC",
"gold": "SELECT name FROM employee ORDER BY age",
"em_norm": 0,
"ex": 1
},
{
"idx": 262,
"db_id": "employee_hire_evaluation",
"question": "List the names of employees and sort in ascending order of age",
"pred": "SELECT Name FROM employee ORDER BY Age ASC",
"gold": "SELECT name FROM employee ORDER BY age",
"em_norm": 0,
"ex": 1
},
{
"idx": 263,
"db_id": "employee_hire_evaluation",
"question": "What is the number of employees from each city",
"pred": "SELECT City, COUNT(*) FROM employee GROUP BY City",
"gold": "SELECT COUNT(*), city FROM employee GROUP BY city",
"em_norm": 0,
"ex": 0
},
{
"idx": 264,
"db_id": "employee_hire_evaluation",
"question": "Count the number of employees for each city",
"pred": "SELECT COUNT(*), city FROM employee GROUP BY city",
"gold": "SELECT COUNT(*), city FROM employee GROUP BY city",
"em_norm": 1,
"ex": 1
},
{
"idx": 265,
"db_id": "employee_hire_evaluation",
"question": "Which cities do more than one employee under age 30 come from",
"pred": "SELECT city FROM employee WHERE age 30 GROUP BY city HAVING COUNT(*) > 1",
"gold": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 266,
"db_id": "employee_hire_evaluation",
"question": "Find the cities that have more than one employee under age 30",
"pred": "SELECT city FROM employee WHERE age 30 GROUP BY city HAVING COUNT(*) > 1",
"gold": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING COUNT(*) > 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 267,
"db_id": "employee_hire_evaluation",
"question": "Find the number of shops in each location",
"pred": "SELECT LOCATION, COUNT(*) FROM shop GROUP BY LOCATION",
"gold": "SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION",
"em_norm": 0,
"ex": 0
},
{
"idx": 268,
"db_id": "employee_hire_evaluation",
"question": "How many shops are there in each location",
"pred": "SELECT LOCATION, COUNT(*) FROM shop GROUP BY LOCATION",
"gold": "SELECT COUNT(*), LOCATION FROM shop GROUP BY LOCATION",
"em_norm": 0,
"ex": 0
},
{
"idx": 269,
"db_id": "employee_hire_evaluation",
"question": "Find the manager name and district of the shop whose number of products is the largest",
"pred": "SELECT T2.manager_name, T2.District FROM shop AS T1 JOIN employee AS T2 ON T1.Shop_ID = T2.Shop_ID ORDER BY T1.Number_Products DESC LIMIT 1",
"gold": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 270,
"db_id": "employee_hire_evaluation",
"question": "What are the manager name and district of the shop that sells the largest number of products",
"pred": "SELECT T2.manager_name, T2.District FROM shop AS T1 JOIN employee AS T2 ON T1.Shop_ID = T2.Shop_ID ORDER BY T1.Number_Products DESC LIMIT 1",
"gold": "SELECT manager_name, district FROM shop ORDER BY number_products DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 271,
"db_id": "employee_hire_evaluation",
"question": "find the minimum and maximum number of products of all stores",
"pred": "SELECT MIN(Number_products), MAX(Number_products) FROM shop",
"gold": "SELECT MIN(Number_products), MAX(Number_products) FROM shop",
"em_norm": 1,
"ex": 1
},
{
"idx": 272,
"db_id": "employee_hire_evaluation",
"question": "What are the minimum and maximum number of products across all the shops",
"pred": "SELECT MIN(Number_products), MAX(Number_products) FROM shop",
"gold": "SELECT MIN(Number_products), MAX(Number_products) FROM shop",
"em_norm": 1,
"ex": 1
},
{
"idx": 273,
"db_id": "employee_hire_evaluation",
"question": "Return the name, location and district of all shops in descending order of number of products",
"pred": "SELECT name, LOCATION, District FROM shop ORDER BY Number_Products DESC",
"gold": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 274,
"db_id": "employee_hire_evaluation",
"question": "Sort all the shops by number products in descending order, and return the name, location and district of each shop",
"pred": "SELECT name, LOCATION, district FROM shop ORDER BY Number_Products DESC",
"gold": "SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 275,
"db_id": "employee_hire_evaluation",
"question": "Find the names of stores whose number products is more than the average number of products",
"pred": "SELECT Name FROM shop WHERE Number_Products > (SELECT AVG(Number_Products) FROM shop)",
"gold": "SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop)",
"em_norm": 1,
"ex": 1
},
{
"idx": 276,
"db_id": "employee_hire_evaluation",
"question": "Which shops' number products is above the average? Give me the shop names",
"pred": "SELECT Name FROM shop WHERE Number_Products > (SELECT AVG(Number_Products) FROM shop)",
"gold": "SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop)",
"em_norm": 1,
"ex": 1
},
{
"idx": 277,
"db_id": "employee_hire_evaluation",
"question": "find the name of employee who was awarded the most times in the evaluation",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 278,
"db_id": "employee_hire_evaluation",
"question": "Which employee received the most awards in evaluations? Give me the employee name",
"pred": "SELECT T1.name FROM employee AS T1 JOIN evaluation AS T2 ON T1.employee_id = T2.employee_id WHERE T2.year_awarded = (SELECT MAX(year_awarded) FROM evaluation)",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 279,
"db_id": "employee_hire_evaluation",
"question": "Find the name of the employee who got the highest one time bonus",
"pred": "SELECT T1.name FROM employee AS T1 JOIN evaluation AS T2 ON T1.employee_id = T2.employee_id WHERE T2.bonus = (SELECT MAX(bonus) FROM evaluation)",
"gold": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 280,
"db_id": "employee_hire_evaluation",
"question": "Which employee received the biggest bonus? Give me the employee name",
"pred": "SELECT T1.name FROM employee AS T1 JOIN evaluation AS T2 ON T1.employee_id = T2.employee_id WHERE T2.bonus = (SELECT MAX(bonus) FROM evaluation)",
"gold": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 281,
"db_id": "employee_hire_evaluation",
"question": "Find the names of employees who never won any award in the evaluation",
"pred": "SELECT name FROM employee WHERE NOT employee_id IN (SELECT employee_id FROM evaluation)",
"gold": "SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation)",
"em_norm": 1,
"ex": 1
},
{
"idx": 282,
"db_id": "employee_hire_evaluation",
"question": "What are the names of the employees who never received any evaluation",
"pred": "SELECT name FROM employee WHERE NOT employee_id IN (SELECT employee_id FROM evaluation)",
"gold": "SELECT name FROM employee WHERE NOT Employee_ID IN (SELECT Employee_ID FROM evaluation)",
"em_norm": 1,
"ex": 1
},
{
"idx": 283,
"db_id": "employee_hire_evaluation",
"question": "What is the name of the shop that is hiring the largest number of employees",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 284,
"db_id": "employee_hire_evaluation",
"question": "Which shop has the most employees? Give me the shop name",
"pred": "SELECT T2.Name FROM employee AS T1 JOIN hiring AS T2 ON T1.Employee_ID = T2.Employee_ID JOIN shop AS T3 ON T3.Shop_ID = T2.Shop_ID GROUP BY T3.Name ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 285,
"db_id": "employee_hire_evaluation",
"question": "Find the name of the shops that do not hire any employee",
"pred": "SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring)",
"gold": "SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring)",
"em_norm": 1,
"ex": 1
},
{
"idx": 286,
"db_id": "employee_hire_evaluation",
"question": "Which shops run with no employees? Find the shop names",
"pred": "SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM employee)",
"gold": "SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring)",
"em_norm": 0,
"ex": 0
},
{
"idx": 287,
"db_id": "employee_hire_evaluation",
"question": "Find the number of employees hired in each shop; show the shop name as well",
"pred": "SELECT T2.Name, COUNT(*) FROM hiring AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID",
"gold": "SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name",
"em_norm": 0,
"ex": 0
},
{
"idx": 288,
"db_id": "employee_hire_evaluation",
"question": "For each shop, return the number of employees working there and the name of the shop",
"pred": "SELECT T2.Name, COUNT(*) FROM employee AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID",
"gold": "SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name",
"em_norm": 0,
"ex": 0
},
{
"idx": 289,
"db_id": "employee_hire_evaluation",
"question": "What is total bonus given in all evaluations",
"pred": "SELECT SUM(Bonus) FROM evaluation",
"gold": "SELECT SUM(bonus) FROM evaluation",
"em_norm": 1,
"ex": 1
},
{
"idx": 290,
"db_id": "employee_hire_evaluation",
"question": "Find the total amount of bonus given in all the evaluations",
"pred": "SELECT SUM(Bonus) FROM evaluation",
"gold": "SELECT SUM(bonus) FROM evaluation",
"em_norm": 1,
"ex": 1
},
{
"idx": 291,
"db_id": "employee_hire_evaluation",
"question": "Give me all the information about hiring",
"pred": "SELECT * FROM hiring",
"gold": "SELECT * FROM hiring",
"em_norm": 1,
"ex": 1
},
{
"idx": 292,
"db_id": "employee_hire_evaluation",
"question": "What is all the information about hiring",
"pred": "SELECT * FROM hiring",
"gold": "SELECT * FROM hiring",
"em_norm": 1,
"ex": 1
},
{
"idx": 293,
"db_id": "employee_hire_evaluation",
"question": "Which district has both stores with less than 3000 products and stores with more than 10000 products",
"pred": "SELECT District FROM shop WHERE Number_Products 3000 INTERSECT SELECT District FROM shop WHERE Number_Products > 10000",
"gold": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000",
"em_norm": 0,
"ex": 0
},
{
"idx": 294,
"db_id": "employee_hire_evaluation",
"question": "Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products",
"pred": "SELECT District FROM shop WHERE Number_Products 3000 INTERSECT SELECT District FROM shop WHERE Number_Products > 10000",
"gold": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000",
"em_norm": 0,
"ex": 0
},
{
"idx": 295,
"db_id": "employee_hire_evaluation",
"question": "How many different store locations are there",
"pred": "SELECT COUNT(DISTINCT LOCATION) FROM shop",
"gold": "SELECT COUNT(DISTINCT LOCATION) FROM shop",
"em_norm": 1,
"ex": 1
},
{
"idx": 296,
"db_id": "employee_hire_evaluation",
"question": "Count the number of distinct store locations",
"pred": "SELECT COUNT(DISTINCT LOCATION) FROM shop",
"gold": "SELECT COUNT(DISTINCT LOCATION) FROM shop",
"em_norm": 1,
"ex": 1
},
{
"idx": 297,
"db_id": "cre_Doc_Template_Mgt",
"question": "How many documents do we have",
"pred": "SELECT COUNT(*) FROM Documents",
"gold": "SELECT COUNT(*) FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 298,
"db_id": "cre_Doc_Template_Mgt",
"question": "Count the number of documents",
"pred": "SELECT COUNT(*) FROM Documents",
"gold": "SELECT COUNT(*) FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 299,
"db_id": "cre_Doc_Template_Mgt",
"question": "List document IDs, document names, and document descriptions for all documents",
"pred": "SELECT document_id, document_name, document_description FROM Documents",
"gold": "SELECT document_id, document_name, document_description FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 300,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids, names, and descriptions for all documents",
"pred": "SELECT document_id, document_name, document_description FROM Documents",
"gold": "SELECT document_id, document_name, document_description FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 301,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the document name and template id for document with description with the letter 'w' in it",
"pred": "SELECT document_name, template_id FROM Documents WHERE document_description LIKE '%w%'",
"gold": "SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE \"%w%\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 302,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the names and template ids for documents that contain the letter w in their description",
"pred": "SELECT document_name, template_id FROM Documents WHERE document_description LIKE '%w%'",
"gold": "SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE \"%w%\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 303,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the document id, template id and description for document named \"Robbin CV\"",
"pred": "SELECT T1.document_id, T2.template_id, T1.document_description FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id WHERE T1.document_name = \"Robbin CV\"",
"gold": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = \"Robbin CV\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 304,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the document id, template id, and description for the document with the name Robbin CV",
"pred": "SELECT T1.document_id, T2.template_id, T1.document_description FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id WHERE T1.document_name = \"Robbin CV\"",
"gold": "SELECT document_id, template_id, Document_Description FROM Documents WHERE document_name = \"Robbin CV\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 305,
"db_id": "cre_Doc_Template_Mgt",
"question": "How many different templates do all document use",
"pred": "SELECT COUNT(DISTINCT template_id) FROM documents",
"gold": "SELECT COUNT(DISTINCT template_id) FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 306,
"db_id": "cre_Doc_Template_Mgt",
"question": "Count the number of different templates used for documents",
"pred": "SELECT COUNT(DISTINCT template_id) FROM documents",
"gold": "SELECT COUNT(DISTINCT template_id) FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 307,
"db_id": "cre_Doc_Template_Mgt",
"question": "How many documents are using the template with type code 'PPT'",
"pred": "SELECT COUNT(*) FROM documents AS T1 JOIN templates AS T2 ON T1.template_id = T2.template_id WHERE T2.template_type_code = \"PPT\"",
"gold": "SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'",
"em_norm": 1,
"ex": 1
},
{
"idx": 308,
"db_id": "cre_Doc_Template_Mgt",
"question": "Count the number of documents that use the PPT template type",
"pred": "SELECT COUNT(*) FROM Documents WHERE template_type_code = \"PPT\"",
"gold": "SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'",
"em_norm": 0,
"ex": 0
},
{
"idx": 309,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all template ids and number of documents using each template",
"pred": "SELECT template_id, COUNT(*) FROM documents GROUP BY template_id",
"gold": "SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id",
"em_norm": 1,
"ex": 1
},
{
"idx": 310,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are all different template ids used for documents, and how many times were each of them used",
"pred": "SELECT DISTINCT template_id, COUNT(*) FROM documents GROUP BY template_id",
"gold": "SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id",
"em_norm": 0,
"ex": 1
},
{
"idx": 311,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the id and type code for the template used by the most documents",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 312,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the id and type code of the template that is used for the greatest number of documents",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 313,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show ids for all templates that are used by more than one document",
"pred": "SELECT template_id FROM documents GROUP BY template_id HAVING COUNT(*) > 1",
"gold": "SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 314,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the template ids of any templates used in more than a single document",
"pred": "SELECT template_id FROM documents GROUP BY template_id HAVING COUNT(*) > 1",
"gold": "SELECT template_id FROM Documents GROUP BY template_id HAVING COUNT(*) > 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 315,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show ids for all templates not used by any document",
"pred": "SELECT template_id FROM templates EXCEPT SELECT template_id FROM documents",
"gold": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 316,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids for templates that are not used in any documents",
"pred": "SELECT template_id FROM templates EXCEPT SELECT template_id FROM documents",
"gold": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents",
"em_norm": 1,
"ex": 1
},
{
"idx": 317,
"db_id": "cre_Doc_Template_Mgt",
"question": "How many templates do we have",
"pred": "SELECT COUNT(*) FROM templates",
"gold": "SELECT COUNT(*) FROM Templates",
"em_norm": 1,
"ex": 1
},
{
"idx": 318,
"db_id": "cre_Doc_Template_Mgt",
"question": "Count the number of templates",
"pred": "SELECT COUNT(*) FROM templates",
"gold": "SELECT COUNT(*) FROM Templates",
"em_norm": 1,
"ex": 1
},
{
"idx": 319,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show template ids, version numbers, and template type codes for all templates",
"pred": "SELECT template_id, version_number, template_type_code FROM Templates",
"gold": "SELECT template_id, version_number, template_type_code FROM Templates",
"em_norm": 1,
"ex": 1
},
{
"idx": 320,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids, version numbers, and type codes for each template",
"pred": "SELECT template_id, version_number, template_type_code FROM Templates",
"gold": "SELECT template_id, version_number, template_type_code FROM Templates",
"em_norm": 1,
"ex": 1
},
{
"idx": 321,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all distinct template type codes for all templates",
"pred": "SELECT DISTINCT template_type_code FROM templates",
"gold": "SELECT DISTINCT template_type_code FROM Templates",
"em_norm": 1,
"ex": 1
},
{
"idx": 322,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the different template type codes",
"pred": "SELECT DISTINCT template_type_code",
"gold": "SELECT DISTINCT template_type_code FROM Templates",
"em_norm": 0,
"ex": 0
},
{
"idx": 323,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids of templates with template type code PP or PPT",
"pred": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"",
"gold": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 324,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the ids of templates that have the code PP or PPT",
"pred": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"",
"gold": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 325,
"db_id": "cre_Doc_Template_Mgt",
"question": "How many templates have template type code CV",
"pred": "SELECT COUNT(*) FROM Templates WHERE template_type_code = \"CV\"",
"gold": "SELECT COUNT(*) FROM Templates WHERE template_type_code = \"CV\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 326,
"db_id": "cre_Doc_Template_Mgt",
"question": "Count the number of templates of the type CV",
"pred": "SELECT COUNT(*) FROM Templates WHERE template_type_code = \"CV\"",
"gold": "SELECT COUNT(*) FROM Templates WHERE template_type_code = \"CV\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 327,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the version number and template type code for the template with version number later than 5",
"pred": "SELECT T1.version_number, T2.template_type_code FROM Templates AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id WHERE T1.version_number > 5",
"gold": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5",
"em_norm": 0,
"ex": 1
},
{
"idx": 328,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the version numbers and template type codes of templates with a version number greater than 5",
"pred": "SELECT T1.version_number, T2.template_type_code FROM Templates AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id WHERE T1.version_number > 5",
"gold": "SELECT version_number, template_type_code FROM Templates WHERE version_number > 5",
"em_norm": 0,
"ex": 1
},
{
"idx": 329,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all template type codes and number of templates for each",
"pred": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code",
"gold": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code",
"em_norm": 1,
"ex": 1
},
{
"idx": 330,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the different template type codes, and how many templates correspond to each",
"pred": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code",
"gold": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code",
"em_norm": 1,
"ex": 1
},
{
"idx": 331,
"db_id": "cre_Doc_Template_Mgt",
"question": "Which template type code has most number of templates",
"pred": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 332,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the type code of the template type that the most templates belong to",
"pred": "SELECT T1.template_type_code FROM Ref_template_types AS T1 JOIN templates AS T2 ON T1.template_type_code = T2.template_type_code GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 333,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all template type codes with less than three templates",
"pred": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) 3",
"gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3",
"em_norm": 0,
"ex": 0
},
{
"idx": 334,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the codes of template types that have fewer than 3 templates",
"pred": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) 3",
"gold": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING COUNT(*) < 3",
"em_norm": 0,
"ex": 0
},
{
"idx": 335,
"db_id": "cre_Doc_Template_Mgt",
"question": "What the smallest version number and its template type code",
"pred": "SELECT MIN(version_number), template_type_code FROM Templates",
"gold": "SELECT MIN(Version_Number), template_type_code FROM Templates",
"em_norm": 1,
"ex": 1
},
{
"idx": 336,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the lowest version number, along with its corresponding template type code",
"pred": "SELECT MIN(version_number), template_type_code FROM templates",
"gold": "SELECT MIN(Version_Number), template_type_code FROM Templates",
"em_norm": 1,
"ex": 1
},
{
"idx": 337,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the template type code of the template used by document with the name \"Data base\"",
"pred": "SELECT T2.template_type_code FROM documents AS T1 JOIN templates AS T2 ON T1.template_id = T2.template_id WHERE T1.document_name = \"Data base\"",
"gold": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 338,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the template type code of the template that is used by a document named Data base",
"pred": "SELECT T2.template_type_code FROM documents AS T1 JOIN templates AS T2 ON T1.template_id = T2.template_id WHERE T1.document_name = \"Data base\"",
"gold": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 339,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all document names using templates with template type code BK",
"pred": "SELECT document_name FROM documents WHERE template_type_code = \"BK\"",
"gold": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 340,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the names of documents that use templates with the code BK",
"pred": "SELECT document_name FROM documents WHERE template_id IN (SELECT template_id FROM Templates WHERE template_type_code = \"BK\")",
"gold": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 341,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all template type codes and the number of documents using each type",
"pred": "SELECT T2.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T2.template_type_code",
"gold": "SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code",
"em_norm": 0,
"ex": 0
},
{
"idx": 342,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the different template type codes, and how many documents use each type",
"pred": "SELECT T1.template_type_code, COUNT(*) FROM Ref_template_types AS T1 JOIN templates AS T2 ON T1.template_type_code = T2.template_type_code GROUP BY T1.template_type_code",
"gold": "SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code",
"em_norm": 0,
"ex": 0
},
{
"idx": 343,
"db_id": "cre_Doc_Template_Mgt",
"question": "Which template type code is used by most number of documents",
"pred": "SELECT template_type_code FROM Documents GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 344,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the code of the template type that is most commonly used in documents",
"pred": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 345,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all template type codes that are not used by any document",
"pred": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 346,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the codes of template types that are not used for any document",
"pred": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 347,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all template type codes and descriptions",
"pred": "SELECT template_type_code, template_type_description FROM Ref_template_types",
"gold": "SELECT template_type_code, template_type_description FROM Ref_template_types",
"em_norm": 1,
"ex": 1
},
{
"idx": 348,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the type codes and descriptions for all template types",
"pred": "SELECT template_type_code, template_type_description FROM Ref_template_types",
"gold": "SELECT template_type_code, template_type_description FROM Ref_template_types",
"em_norm": 1,
"ex": 1
},
{
"idx": 349,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the template type descriptions for template type code \"AD\"",
"pred": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"",
"gold": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 350,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the template type description of the template type with the code AD",
"pred": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"",
"gold": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 351,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the template type code for template type description \"Book\"",
"pred": "SELECT T1.template_type_code FROM Ref_template_types AS T1 JOIN templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T2.template_type_description = \"Book\"",
"gold": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 352,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the type code of the template type with the description \"Book\"",
"pred": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"",
"gold": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 353,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the distinct template type descriptions for the templates ever used by any document",
"pred": "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",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 354,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the different descriptions for templates that have been used in a document",
"pred": "SELECT DISTINCT template_type_description FROM templates",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 355,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the template ids with template type description \"Presentation\"",
"pred": "SELECT template_id FROM Templates WHERE template_type_description = \"Presentation\"",
"gold": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 356,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the ids corresponding to templates with the description 'Presentation'",
"pred": "SELECT template_id FROM Templates WHERE document_description = 'Presentation'",
"gold": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 357,
"db_id": "cre_Doc_Template_Mgt",
"question": "How many paragraphs in total",
"pred": "SELECT COUNT(*) FROM PARAGRAPHS",
"gold": "SELECT COUNT(*) FROM Paragraphs",
"em_norm": 1,
"ex": 1
},
{
"idx": 358,
"db_id": "cre_Doc_Template_Mgt",
"question": "Count the number of paragraphs",
"pred": "SELECT COUNT(*) FROM Paragraphs",
"gold": "SELECT COUNT(*) FROM Paragraphs",
"em_norm": 1,
"ex": 1
},
{
"idx": 359,
"db_id": "cre_Doc_Template_Mgt",
"question": "How many paragraphs for the document with name 'Summer Show'",
"pred": "SELECT COUNT(*) FROM paragraphs AS T1 JOIN documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Summer Show\"",
"gold": "SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'",
"em_norm": 1,
"ex": 1
},
{
"idx": 360,
"db_id": "cre_Doc_Template_Mgt",
"question": "Count the number of paragraphs in the document named 'Summer Show'",
"pred": "SELECT COUNT(*) FROM paragraphs AS T1 JOIN documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Summer Show\"",
"gold": "SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'",
"em_norm": 1,
"ex": 1
},
{
"idx": 361,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show paragraph details for paragraph with text 'Korea '",
"pred": "SELECT other_details FROM Paragraphs WHERE paragraph_text LIKE '%Korea%'",
"gold": "SELECT other_details FROM paragraphs WHERE paragraph_text LIKE 'korea'",
"em_norm": 0,
"ex": 1
},
{
"idx": 362,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the details for the paragraph that includes the text 'Korea '",
"pred": "SELECT other_details FROM Paragraphs WHERE paragraph_text LIKE '%Korea%'",
"gold": "SELECT other_details FROM paragraphs WHERE paragraph_text LIKE 'korea'",
"em_norm": 0,
"ex": 1
},
{
"idx": 363,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'",
"pred": "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\"",
"gold": "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'",
"em_norm": 1,
"ex": 1
},
{
"idx": 364,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids and texts of paragraphs in the document titled 'Welcome to NY'",
"pred": "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\"",
"gold": "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'",
"em_norm": 1,
"ex": 1
},
{
"idx": 365,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all paragraph texts for the document \"Customer reviews\"",
"pred": "SELECT T1.paragraph_text FROM paragraphs AS T1 JOIN documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"",
"gold": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 366,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the paragraph texts for the document with the name 'Customer reviews'",
"pred": "SELECT t2.paragraph_text FROM documents AS t1 JOIN paragraphs AS t2 ON t1.document_id = t2.document_id WHERE t1.document_name = \"Customer reviews\"",
"gold": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 367,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all document ids and the number of paragraphs in each document. Order by document id",
"pred": "SELECT document_id, COUNT(*) FROM paragraphs GROUP BY document_id ORDER BY COUNT(*)",
"gold": "SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 368,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the different document ids along with the number of paragraphs corresponding to each, ordered by id",
"pred": "SELECT document_id, COUNT(*) FROM paragraphs GROUP BY document_id ORDER BY COUNT(*)",
"gold": "SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 369,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show all document ids, names and the number of paragraphs in each document",
"pred": "SELECT T1.document_id, T1.document_name, COUNT(*) FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id",
"gold": "SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id",
"em_norm": 0,
"ex": 1
},
{
"idx": 370,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids and names of each document, as well as the number of paragraphs in each",
"pred": "SELECT T1.document_id, T1.document_name, COUNT(*) FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id",
"gold": "SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id",
"em_norm": 0,
"ex": 1
},
{
"idx": 371,
"db_id": "cre_Doc_Template_Mgt",
"question": "List all document ids with at least two paragraphs",
"pred": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2",
"gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 372,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids of documents that have 2 or more paragraphs",
"pred": "SELECT document_id FROM paragraphs GROUP BY document_id HAVING COUNT(*) >= 2",
"gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 373,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the document id and name with greatest number of paragraphs",
"pred": "SELECT T1.document_id, T1.document_name FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 374,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the id and name of the document with the most paragraphs",
"pred": "SELECT T1.document_id, T1.document_name FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 375,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the document id with least number of paragraphs",
"pred": "SELECT document_id FROM paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC LIMIT 1",
"gold": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 376,
"db_id": "cre_Doc_Template_Mgt",
"question": "Return the id of the document with the fewest paragraphs",
"pred": "SELECT t1.document_id FROM Documents AS t1 JOIN Paragraphs AS t2 ON t1.document_id = t2.document_id GROUP BY t1.document_id ORDER BY COUNT(*) LIMIT 1",
"gold": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) ASC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 377,
"db_id": "cre_Doc_Template_Mgt",
"question": "What is the document id with 1 to 2 paragraphs",
"pred": "SELECT document_id FROM paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2",
"gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 378,
"db_id": "cre_Doc_Template_Mgt",
"question": "Give the ids of documents that have between one and two paragraphs",
"pred": "SELECT document_id FROM paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2",
"gold": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) BETWEEN 1 AND 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 379,
"db_id": "cre_Doc_Template_Mgt",
"question": "Show the document id with paragraph text 'Brazil' and 'Ireland'",
"pred": "SELECT T1.document_id FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id WHERE T2.paragraph_text = 'Brazil' INTERSECT SELECT T1.document_id FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.paragraph_id = T2.document_id WHERE T2.paragraph_text = 'Irland'",
"gold": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'",
"em_norm": 0,
"ex": 0
},
{
"idx": 380,
"db_id": "cre_Doc_Template_Mgt",
"question": "What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'",
"pred": "SELECT T1.document_id FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id WHERE T2.paragraph_text = 'Brazil' INTERSECT SELECT T1.document_id FROM Documents AS T1 JOIN Paragraphs AS T2 ON T1.document_id = T2.document_id WHERE T2.paragraph_text LIKE '%Ireland%'",
"gold": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'",
"em_norm": 0,
"ex": 1
},
{
"idx": 381,
"db_id": "course_teach",
"question": "How many teachers are there",
"pred": "SELECT COUNT(*) FROM teacher",
"gold": "SELECT COUNT(*) FROM teacher",
"em_norm": 1,
"ex": 1
},
{
"idx": 382,
"db_id": "course_teach",
"question": "What is the total count of teachers",
"pred": "SELECT COUNT(*) FROM teacher",
"gold": "SELECT COUNT(*) FROM teacher",
"em_norm": 1,
"ex": 1
},
{
"idx": 383,
"db_id": "course_teach",
"question": "List the names of teachers in ascending order of age",
"pred": "SELECT Name FROM teacher ORDER BY Age ASC",
"gold": "SELECT Name FROM teacher ORDER BY Age ASC",
"em_norm": 1,
"ex": 1
},
{
"idx": 384,
"db_id": "course_teach",
"question": "What are the names of the teachers ordered by ascending age",
"pred": "SELECT Name FROM teacher ORDER BY Age ASC",
"gold": "SELECT Name FROM teacher ORDER BY Age ASC",
"em_norm": 1,
"ex": 1
},
{
"idx": 385,
"db_id": "course_teach",
"question": "What are the age and hometown of teachers",
"pred": "SELECT Age, Hometown FROM teacher",
"gold": "SELECT Age, Hometown FROM teacher",
"em_norm": 1,
"ex": 1
},
{
"idx": 386,
"db_id": "course_teach",
"question": "What is the age and hometown of every teacher",
"pred": "SELECT Age, Hometown FROM teacher",
"gold": "SELECT Age, Hometown FROM teacher",
"em_norm": 1,
"ex": 1
},
{
"idx": 387,
"db_id": "course_teach",
"question": "List the name of teachers whose hometown is not `` Little Lever Urban District ''",
"pred": "SELECT Name FROM teacher WHERE Hometown > ' Little Lever Urban District '''",
"gold": "SELECT name FROM teacher WHERE hometown <> \"little lever urban district\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 388,
"db_id": "course_teach",
"question": "What are the names of the teachers whose hometown is not `` Little Lever Urban District ''",
"pred": "SELECT Name FROM teacher WHERE Hometown > ' Little Lever Urban District '''",
"gold": "SELECT name FROM teacher WHERE hometown <> \"little lever urban district\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 389,
"db_id": "course_teach",
"question": "Show the name of teachers aged either 32 or 33",
"pred": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33",
"gold": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33",
"em_norm": 1,
"ex": 1
},
{
"idx": 390,
"db_id": "course_teach",
"question": "What are the names of the teachers who are aged either 32 or 33",
"pred": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33",
"gold": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33",
"em_norm": 1,
"ex": 1
},
{
"idx": 391,
"db_id": "course_teach",
"question": "What is the hometown of the youngest teacher",
"pred": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1",
"gold": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 392,
"db_id": "course_teach",
"question": "Where is the youngest teacher from",
"pred": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1",
"gold": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 393,
"db_id": "course_teach",
"question": "Show different hometown of teachers and the number of teachers from each hometown",
"pred": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown",
"gold": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown",
"em_norm": 1,
"ex": 1
},
{
"idx": 394,
"db_id": "course_teach",
"question": "For each hometown, how many teachers are there",
"pred": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown",
"gold": "SELECT Hometown, COUNT(*) FROM teacher GROUP BY Hometown",
"em_norm": 1,
"ex": 1
},
{
"idx": 395,
"db_id": "course_teach",
"question": "List the most common hometown of teachers",
"pred": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 396,
"db_id": "course_teach",
"question": "What is the most commmon hometowns for teachers",
"pred": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 397,
"db_id": "course_teach",
"question": "Show the hometowns shared by at least two teachers",
"pred": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2",
"gold": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 398,
"db_id": "course_teach",
"question": "What are the towns from which at least two teachers come from",
"pred": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2",
"gold": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 399,
"db_id": "course_teach",
"question": "Show names of teachers and the courses they are arranged to teach",
"pred": "SELECT T3.Name, T1.Course FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 400,
"db_id": "course_teach",
"question": "What is the name of each teacher and what course they teach",
"pred": "SELECT T2.Name, T1.Course FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 401,
"db_id": "course_teach",
"question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name",
"pred": "SELECT T3.Name, T1.Course FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID ORDER BY T2.Name ASC",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 402,
"db_id": "course_teach",
"question": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher",
"pred": "SELECT T3.Name, T1.Course FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID ORDER BY T2.Name ASC",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 403,
"db_id": "course_teach",
"question": "Show the name of the teacher for the math course",
"pred": "SELECT T3.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID JOIN course AS T3 ON T1.Course_ID = T3.Course_ID WHERE T3.course = 'Math'",
"gold": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 404,
"db_id": "course_teach",
"question": "What are the names of the people who teach math courses",
"pred": "SELECT T3.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID JOIN course AS T3 ON T1.Course_ID = T3.Course_ID WHERE T3.Computer = \"Math\"",
"gold": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 405,
"db_id": "course_teach",
"question": "Show names of teachers and the number of courses they teach",
"pred": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",
"gold": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",
"em_norm": 1,
"ex": 1
},
{
"idx": 406,
"db_id": "course_teach",
"question": "What are the names of the teachers and how many courses do they teach",
"pred": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",
"gold": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",
"em_norm": 1,
"ex": 1
},
{
"idx": 407,
"db_id": "course_teach",
"question": "Show names of teachers that teach at least two courses",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 408,
"db_id": "course_teach",
"question": "What are the names of the teachers who teach at least two courses",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 409,
"db_id": "course_teach",
"question": "List the names of teachers who have not been arranged to teach courses",
"pred": "SELECT Name FROM teacher WHERE NOT Teacher_ID IN (SELECT Teacher_ID FROM course_arrange)",
"gold": "SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange)",
"em_norm": 1,
"ex": 1
},
{
"idx": 410,
"db_id": "course_teach",
"question": "What are the names of the teachers whose courses have not been arranged",
"pred": "SELECT Name FROM teacher WHERE NOT Teacher_ID IN (SELECT Teacher_ID FROM course_arrange)",
"gold": "SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange)",
"em_norm": 1,
"ex": 1
},
{
"idx": 411,
"db_id": "museum_visit",
"question": "How many visitors below age 30 are there",
"pred": "SELECT COUNT(*) FROM visitor WHERE age 30",
"gold": "SELECT COUNT(*) FROM visitor WHERE age < 30",
"em_norm": 0,
"ex": 0
},
{
"idx": 412,
"db_id": "museum_visit",
"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",
"pred": "SELECT name FROM visitor WHERE level_of_membership > 4 ORDER BY level_of_membership",
"gold": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC",
"em_norm": 0,
"ex": 0
},
{
"idx": 413,
"db_id": "museum_visit",
"question": "What is the average age of the visitors whose membership level is not higher than 4",
"pred": "SELECT AVG(age) FROM visitor WHERE level_of_membership 4",
"gold": "SELECT AVG(age) FROM visitor WHERE Level_of_membership <= 4",
"em_norm": 0,
"ex": 0
},
{
"idx": 414,
"db_id": "museum_visit",
"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",
"pred": "SELECT name, level_of_membership FROM visitor WHERE level_of_membership > 4 ORDER BY age DESC",
"gold": "SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 415,
"db_id": "museum_visit",
"question": "Find the id and name of the museum that has the most staff members",
"pred": "SELECT T1.museum_id, T1.name FROM museum AS T1 JOIN visitor AS T2 ON T1.museum_id = T2.museum_id GROUP BY T1.museum_id ORDER BY SUM(T2.num_of_staff) DESC LIMIT 1",
"gold": "SELECT museum_id, name FROM museum ORDER BY num_of_staff DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 416,
"db_id": "museum_visit",
"question": "Find the average number of staff working for the museums that were open before 2009",
"pred": "SELECT AVG(Num_of_staff) FROM museum WHERE open_year 2009",
"gold": "SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009",
"em_norm": 0,
"ex": 0
},
{
"idx": 417,
"db_id": "museum_visit",
"question": "What are the opening year and staff number of the museum named Plaza Museum",
"pred": "SELECT open_year, num_of_staff FROM museum WHERE name = 'Place Museum'",
"gold": "SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum'",
"em_norm": 0,
"ex": 0
},
{
"idx": 418,
"db_id": "museum_visit",
"question": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010",
"pred": "SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010)",
"gold": "SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010)",
"em_norm": 1,
"ex": 1
},
{
"idx": 419,
"db_id": "museum_visit",
"question": "find the id, name and age for visitors who visited some museums more than once",
"pred": "SELECT T1.id, T1.name, T1.age FROM visitor AS T1 JOIN visit AS T2 ON T1.id = T2.visitor_id GROUP BY T2.visitor_id HAVING COUNT(*) > 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 420,
"db_id": "museum_visit",
"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",
"pred": "SELECT T1.id, T1.name, T1.level_of_membership FROM visitor AS T1 JOIN visit AS T2 ON T1.id = T2.visitor_id ORDER BY SUM(T2.num_of_ticket) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 421,
"db_id": "museum_visit",
"question": "What are the id and name of the museum visited most times",
"pred": "SELECT T1.id, T1.name FROM visitor AS T1 JOIN visit AS T2 ON T1.id = T2.visitor_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 422,
"db_id": "museum_visit",
"question": "What is the name of the museum that had no visitor yet",
"pred": "SELECT name FROM museum WHERE NOT museum_id IN (SELECT visitor_id FROM visit)",
"gold": "SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit)",
"em_norm": 0,
"ex": 0
},
{
"idx": 423,
"db_id": "museum_visit",
"question": "Find the name and age of the visitor who bought the most tickets at once",
"pred": "SELECT T1.name, T1.age 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",
"gold": "SELECT t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 424,
"db_id": "museum_visit",
"question": "What are the average and maximum number of tickets bought in all visits",
"pred": "SELECT AVG(Num_of_ticket), MAX(Num_of_ticket) FROM visitor",
"gold": "SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit",
"em_norm": 0,
"ex": 0
},
{
"idx": 425,
"db_id": "museum_visit",
"question": "What is the total ticket expense of the visitors whose membership level is 1",
"pred": "SELECT SUM(T1.num_of_ticket) FROM visitor AS T1 JOIN visit AS T2 ON T1.id = T2.visitor_id WHERE T1.level_of_membership = 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 426,
"db_id": "museum_visit",
"question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011",
"pred": "SELECT T1.name FROM visitor AS T1 JOIN visit AS T2 ON T1.id = T2.visitor_id WHERE T2.open_year 2009 INTERSECT SELECT T1.name FROM visitor AS T1 JOIN visit AS T2 ON T1.id = T2.visitor_id WHERE T2.open_year > 2011",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 427,
"db_id": "museum_visit",
"question": "Find the number of visitors who did not visit any museum opened after 2010",
"pred": "SELECT COUNT(*) FROM visitor WHERE NOT visitor_id IN (SELECT visitor_id FROM visit WHERE open_year > 2010)",
"gold": "SELECT COUNT(*) FROM visitor WHERE NOT id 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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 428,
"db_id": "museum_visit",
"question": "How many museums were opened after 2013 or before 2008",
"pred": "SELECT COUNT(*) FROM museum WHERE open_year > 2013 OR open_year 2008",
"gold": "SELECT COUNT(*) FROM museum WHERE open_year > 2013 OR open_year < 2008",
"em_norm": 0,
"ex": 0
},
{
"idx": 429,
"db_id": "wta_1",
"question": "Find the total number of players",
"pred": "SELECT COUNT(*) FROM players",
"gold": "SELECT COUNT(*) FROM players",
"em_norm": 1,
"ex": 1
},
{
"idx": 430,
"db_id": "wta_1",
"question": "How many players are there",
"pred": "SELECT COUNT(*) FROM players",
"gold": "SELECT COUNT(*) FROM players",
"em_norm": 1,
"ex": 1
},
{
"idx": 431,
"db_id": "wta_1",
"question": "Find the total number of matches",
"pred": "SELECT COUNT(*) FROM MATCHES",
"gold": "SELECT COUNT(*) FROM matches",
"em_norm": 1,
"ex": 1
},
{
"idx": 432,
"db_id": "wta_1",
"question": "Count the number of matches",
"pred": "SELECT COUNT(*) FROM MATCHES",
"gold": "SELECT COUNT(*) FROM matches",
"em_norm": 1,
"ex": 1
},
{
"idx": 433,
"db_id": "wta_1",
"question": "List the first name and birth date of all players from the country with code USA",
"pred": "SELECT first_name, birth_date FROM players WHERE country_code = \"USA\"",
"gold": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA'",
"em_norm": 1,
"ex": 1
},
{
"idx": 434,
"db_id": "wta_1",
"question": "What are the first names and birth dates of players from the USA",
"pred": "SELECT first_name, birth_date FROM players WHERE country_code = \"USA\"",
"gold": "SELECT first_name, birth_date FROM players WHERE country_code = 'USA'",
"em_norm": 1,
"ex": 1
},
{
"idx": 435,
"db_id": "wta_1",
"question": "Find the average age of losers and winners of all matches",
"pred": "SELECT AVG(T1.loser_age), AVG(T2.winner_age) FROM matches AS T1 JOIN players AS T2 ON T1.winner_id = T2.player_id",
"gold": "SELECT AVG(loser_age), AVG(winner_age) FROM matches",
"em_norm": 0,
"ex": 0
},
{
"idx": 436,
"db_id": "wta_1",
"question": "What are the average ages of losers and winners across matches",
"pred": "SELECT AVG(T1.loser_age), AVG(T2.winner_age) FROM matches AS T1 JOIN players AS T2 ON T1.winner_id = T2.player_id",
"gold": "SELECT AVG(loser_age), AVG(winner_age) FROM matches",
"em_norm": 0,
"ex": 0
},
{
"idx": 437,
"db_id": "wta_1",
"question": "Find the average rank of winners in all matches",
"pred": "SELECT AVG(Winner_rank) FROM matches",
"gold": "SELECT AVG(winner_rank) FROM matches",
"em_norm": 1,
"ex": 1
},
{
"idx": 438,
"db_id": "wta_1",
"question": "What is the average rank for winners in all matches",
"pred": "SELECT AVG(Winner_rank) FROM matches",
"gold": "SELECT AVG(winner_rank) FROM matches",
"em_norm": 1,
"ex": 1
},
{
"idx": 439,
"db_id": "wta_1",
"question": "Find the highest rank of losers in all matches",
"pred": "SELECT MAX(Loser_rank) FROM matches",
"gold": "SELECT MIN(loser_rank) FROM matches",
"em_norm": 0,
"ex": 0
},
{
"idx": 440,
"db_id": "wta_1",
"question": "What is the best rank of losers across all matches",
"pred": "SELECT DISTINCT T1.loser_rank, MAX(T2.loser_rank) FROM matches AS T1 JOIN rankings AS T2 ON T1.loser_id = T2.loser_id GROUP BY T1.loser_rank",
"gold": "SELECT MIN(loser_rank) FROM matches",
"em_norm": 0,
"ex": 0
},
{
"idx": 441,
"db_id": "wta_1",
"question": "find the number of distinct country codes of all players",
"pred": "SELECT COUNT(DISTINCT country_code) FROM players",
"gold": "SELECT COUNT(DISTINCT country_code) FROM players",
"em_norm": 1,
"ex": 1
},
{
"idx": 442,
"db_id": "wta_1",
"question": "How many distinct countries do players come from",
"pred": "SELECT COUNT(DISTINCT country_code) FROM players",
"gold": "SELECT COUNT(DISTINCT country_code) FROM players",
"em_norm": 1,
"ex": 1
},
{
"idx": 443,
"db_id": "wta_1",
"question": "Find the number of distinct name of losers",
"pred": "SELECT COUNT(DISTINCT loser_name) FROM players",
"gold": "SELECT COUNT(DISTINCT loser_name) FROM matches",
"em_norm": 0,
"ex": 0
},
{
"idx": 444,
"db_id": "wta_1",
"question": "How many different loser names are there",
"pred": "SELECT COUNT(DISTINCT loser_name) FROM players",
"gold": "SELECT COUNT(DISTINCT loser_name) FROM matches",
"em_norm": 0,
"ex": 0
},
{
"idx": 445,
"db_id": "wta_1",
"question": "Find the name of tourney that has more than 10 matches",
"pred": "SELECT T2.Tournament_Name FROM matches AS T1 JOIN tournament AS T2 ON T1.Tournament_ID = T2.Tournament_ID GROUP BY T2.Tournament_Name HAVING COUNT(*) > 10",
"gold": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10",
"em_norm": 0,
"ex": 0
},
{
"idx": 446,
"db_id": "wta_1",
"question": "What are the names of tournaments that have more than 10 matches",
"pred": "SELECT T2.Tournament_Name FROM matches AS T1 JOIN tournaments AS T2 ON T1.Tournament_ID = T2.Tournament_ID GROUP BY T2.Tournament_Name HAVING COUNT(*) > 10",
"gold": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10",
"em_norm": 0,
"ex": 0
},
{
"idx": 447,
"db_id": "wta_1",
"question": "List the names of all winners who played in both 2013 and 2016",
"pred": "SELECT winner_name FROM players WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM players WHERE YEAR = 2016",
"gold": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016",
"em_norm": 0,
"ex": 0
},
{
"idx": 448,
"db_id": "wta_1",
"question": "What are the names of players who won in both 2013 and 2016",
"pred": "SELECT T2.winner_name FROM matches AS T1 JOIN players AS T2 ON T1.player_id = T2.winner_id WHERE T1.year = 2013 INTERSECT SELECT T2.winner_name FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.winner_id WHERE T1.year = 2016",
"gold": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016",
"em_norm": 0,
"ex": 0
},
{
"idx": 449,
"db_id": "wta_1",
"question": "List the number of all matches who played in years of 2013 or 2016",
"pred": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016",
"gold": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016",
"em_norm": 1,
"ex": 1
},
{
"idx": 450,
"db_id": "wta_1",
"question": "How many matches were played in 2013 or 2016",
"pred": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016",
"gold": "SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016",
"em_norm": 1,
"ex": 1
},
{
"idx": 451,
"db_id": "wta_1",
"question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open",
"pred": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tournament_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id WHERE T2.tournament_name = 'Australian Open'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 452,
"db_id": "wta_1",
"question": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open",
"pred": "SELECT T2.first_name, T2.country_code FROM rankings AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id JOIN tournaments AS T3 ON T1.tournament_name = T3.tournament_name JOIN players AS T4 ON T3.player_id = T4.player_id WHERE T3.tournament_name = 'WTA Championships' INTERSECT SELECT T2.country_code = 'Australian Open'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 453,
"db_id": "wta_1",
"question": "Find the first name and country code of the oldest player",
"pred": "SELECT first_name, country_code FROM players ORDER BY birth_date DESC LIMIT 1",
"gold": "SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 454,
"db_id": "wta_1",
"question": "What is the first name and country code of the oldest player",
"pred": "SELECT first_name, country_code FROM players ORDER BY birth_date DESC LIMIT 1",
"gold": "SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 455,
"db_id": "wta_1",
"question": "List the first and last name of all players in the order of birth date",
"pred": "SELECT first_name, last_name FROM players ORDER BY Birth_Date",
"gold": "SELECT first_name, last_name FROM players ORDER BY birth_date",
"em_norm": 1,
"ex": 1
},
{
"idx": 456,
"db_id": "wta_1",
"question": "What are the full names of all players, sorted by birth date",
"pred": "SELECT First_Name, Last_Name FROM Players ORDER BY Birth_Date",
"gold": "SELECT first_name, last_name FROM players ORDER BY birth_date",
"em_norm": 1,
"ex": 1
},
{
"idx": 457,
"db_id": "wta_1",
"question": "List the first and last name of all players who are left / L hand in the order of birth date",
"pred": "SELECT first_name, last_name FROM players WHERE hand = 'left' ORDER BY birth_date",
"gold": "SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date",
"em_norm": 0,
"ex": 0
},
{
"idx": 458,
"db_id": "wta_1",
"question": "What are the full names of all left handed players, in order of birth date",
"pred": "SELECT first_name, last_name, birth_date FROM players WHERE hand = 'left' ORDER BY birth_date",
"gold": "SELECT first_name, last_name FROM players WHERE hand = 'L' ORDER BY birth_date",
"em_norm": 0,
"ex": 0
},
{
"idx": 459,
"db_id": "wta_1",
"question": "Find the first name and country code of the player who did the most number of tours",
"pred": "SELECT T1.first_name, T1.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 460,
"db_id": "wta_1",
"question": "What is the first name and country code of the player with the most tours",
"pred": "SELECT T1.first_name, T1.country_code FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY SUM(T2.tours) DESC LIMIT 1",
"gold": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 461,
"db_id": "wta_1",
"question": "Find the year that has the most number of matches",
"pred": "SELECT YEAR FROM MATCHES GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 462,
"db_id": "wta_1",
"question": "Which year had the most matches",
"pred": "SELECT YEAR FROM MATCHES GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 463,
"db_id": "wta_1",
"question": "Find the name and rank points of the winner who won the most times",
"pred": "SELECT T1.winner_name, T1.winner_rank_points FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.winner_id GROUP BY T1.winner_rank_points ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 464,
"db_id": "wta_1",
"question": "What is the name of the winner who has won the most matches, and how many rank points does this player have",
"pred": "SELECT T1.winner_name, T1.winner_rank_points FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 465,
"db_id": "wta_1",
"question": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney",
"pred": "SELECT T1.winner_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id JOIN tourneys AS T3 ON T2.tournament_name = T3.tournament_name WHERE T3.tournament_name = 'Australian Open' ORDER BY T1.winner_rank_points DESC LIMIT 1",
"gold": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 466,
"db_id": "wta_1",
"question": "What is the name of the winner with the most rank points who participated in the Australian Open tournament",
"pred": "SELECT T1.winner_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id JOIN tournaments AS T3 ON T2.tournament_name = T3.Tournament_name WHERE T3.Tournament_name = \"Australian Open\" GROUP BY T1.winner_rank_points ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 467,
"db_id": "wta_1",
"question": "find the names of loser and winner who played in the match with greatest number of minutes",
"pred": "SELECT T2.loser_name, T2.winner_name FROM matches AS T1 JOIN players AS T2 ON T1.player_id = T2.winner_id ORDER BY T1.minutes DESC LIMIT 1",
"gold": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 468,
"db_id": "wta_1",
"question": "What are the names of the winner and loser who played in the longest match",
"pred": "SELECT T1.winner_name, T1.loser_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.match_number DESC LIMIT 1",
"gold": "SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 469,
"db_id": "wta_1",
"question": "Find the average ranking for each player and their first name",
"pred": "SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 470,
"db_id": "wta_1",
"question": "What are the first names of all players, and their average rankings",
"pred": "SELECT T1.first_name, AVG(T2.ranking) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 471,
"db_id": "wta_1",
"question": "Find the total ranking points for each player and their first name",
"pred": "SELECT SUM(ranking_points), first_name FROM players",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 472,
"db_id": "wta_1",
"question": "What are the first names of all players, and their total ranking points",
"pred": "SELECT T1.first_name, SUM(T2.ranking_points) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 473,
"db_id": "wta_1",
"question": "find the number of players for each country",
"pred": "SELECT country_code, COUNT(*) FROM players GROUP BY country_code",
"gold": "SELECT COUNT(*), country_code FROM players GROUP BY country_code",
"em_norm": 0,
"ex": 0
},
{
"idx": 474,
"db_id": "wta_1",
"question": "How many players are from each country",
"pred": "SELECT country_code, COUNT(*) FROM players GROUP BY country_code",
"gold": "SELECT COUNT(*), country_code FROM players GROUP BY country_code",
"em_norm": 0,
"ex": 0
},
{
"idx": 475,
"db_id": "wta_1",
"question": "find the code of the country where has the greatest number of players",
"pred": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 476,
"db_id": "wta_1",
"question": "What is the code of the country with the most players",
"pred": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT country_code FROM players GROUP BY country_code ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 477,
"db_id": "wta_1",
"question": "Find the codes of countries that have more than 50 players",
"pred": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50",
"gold": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50",
"em_norm": 1,
"ex": 1
},
{
"idx": 478,
"db_id": "wta_1",
"question": "What are the codes of countries with more than 50 players",
"pred": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50",
"gold": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50",
"em_norm": 1,
"ex": 1
},
{
"idx": 479,
"db_id": "wta_1",
"question": "Find the total number of tours for each ranking date",
"pred": "SELECT ranking_date, COUNT(*) FROM rankings GROUP BY ranking_date",
"gold": "SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date",
"em_norm": 0,
"ex": 0
},
{
"idx": 480,
"db_id": "wta_1",
"question": "How many total tours were there for each ranking date",
"pred": "SELECT SUM(Tours), ranking_date FROM rankings GROUP BY ranking_date",
"gold": "SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date",
"em_norm": 1,
"ex": 1
},
{
"idx": 481,
"db_id": "wta_1",
"question": "Find the number of matches happened in each year",
"pred": "SELECT COUNT(*), YEAR FROM MATCHES GROUP BY YEAR",
"gold": "SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR",
"em_norm": 1,
"ex": 1
},
{
"idx": 482,
"db_id": "wta_1",
"question": "How many matches were played in each year",
"pred": "SELECT YEAR, COUNT(*) FROM matches GROUP BY YEAR",
"gold": "SELECT COUNT(*), YEAR FROM matches GROUP BY YEAR",
"em_norm": 0,
"ex": 0
},
{
"idx": 483,
"db_id": "wta_1",
"question": "Find the name and rank of the 3 youngest winners across all matches",
"pred": "SELECT T1.winner_name, T1.winner_rank FROM players AS T1 JOIN matches AS T2 ON T1.winner_id = T2.winner_id ORDER BY T2.winner_age LIMIT 3",
"gold": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3",
"em_norm": 0,
"ex": 0
},
{
"idx": 484,
"db_id": "wta_1",
"question": "What are the names and ranks of the three youngest winners across all matches",
"pred": "SELECT T1.winner_name, T1.winner_rank FROM players AS T1 JOIN matches AS T2 ON T1.winner_id = T2.winner_id ORDER BY T2.winner_age LIMIT 3",
"gold": "SELECT DISTINCT winner_name, winner_rank FROM matches ORDER BY winner_age LIMIT 3",
"em_norm": 0,
"ex": 0
},
{
"idx": 485,
"db_id": "wta_1",
"question": "How many different winners both participated in the WTA Championships and were left handed",
"pred": "SELECT COUNT(DISTINCT T1.Winner_Name) FROM players AS T1 JOIN matches AS T2 ON T1.Winner_ID = T2.Winner_ID WHERE T1.hand = \"left\" AND T2.Tournament_name = \"WTA Championships\"",
"gold": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'",
"em_norm": 0,
"ex": 0
},
{
"idx": 486,
"db_id": "wta_1",
"question": "Find the number of left handed winners who participated in the WTA Championships",
"pred": "SELECT COUNT(*) FROM players WHERE winner_hand = \"left\" AND JOIN matches AS T1 JOIN players AS T2 ON T1.player_id = T2.player_id WHERE T1.tournament_name = \"WTA Championships\"",
"gold": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'",
"em_norm": 0,
"ex": 0
},
{
"idx": 487,
"db_id": "wta_1",
"question": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches",
"pred": "SELECT T1.winner_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.winner_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1",
"gold": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 488,
"db_id": "wta_1",
"question": "What is the first name, country code, and birth date of the player with the most winner rank points across all matches",
"pred": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 489,
"db_id": "wta_1",
"question": "Find the number of players for each hand type",
"pred": "SELECT hand, COUNT(*) FROM players GROUP BY hand",
"gold": "SELECT COUNT(*), hand FROM players GROUP BY hand",
"em_norm": 0,
"ex": 0
},
{
"idx": 490,
"db_id": "wta_1",
"question": "How many players are there for each hand type",
"pred": "SELECT DISTINCT hand, COUNT(*) FROM players GROUP BY hand",
"gold": "SELECT COUNT(*), hand FROM players GROUP BY hand",
"em_norm": 0,
"ex": 0
},
{
"idx": 491,
"db_id": "battle_death",
"question": "How many ships ended up being 'Captured'",
"pred": "SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured'",
"gold": "SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured'",
"em_norm": 1,
"ex": 1
},
{
"idx": 492,
"db_id": "battle_death",
"question": "List the name and tonnage ordered by in descending alphaetical order for the names",
"pred": "SELECT name, Tonnage FROM ship ORDER BY name DESC",
"gold": "SELECT name, tonnage FROM ship ORDER BY name DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 493,
"db_id": "battle_death",
"question": "List the name, date and result of each battle",
"pred": "SELECT name, date, result FROM battle",
"gold": "SELECT name, date FROM battle",
"em_norm": 0,
"ex": 0
},
{
"idx": 494,
"db_id": "battle_death",
"question": "What is maximum and minimum death toll caused each time",
"pred": "SELECT MAX(dead), MIN(dead) FROM death",
"gold": "SELECT MAX(killed), MIN(killed) FROM death",
"em_norm": 0,
"ex": 0
},
{
"idx": 495,
"db_id": "battle_death",
"question": "What is the average number of injuries caused each time",
"pred": "SELECT AVG(Injured) FROM death GROUP BY Injured",
"gold": "SELECT AVG(injured) FROM death",
"em_norm": 0,
"ex": 0
},
{
"idx": 496,
"db_id": "battle_death",
"question": "What are the death and injury situations caused by the ship with tonnage 't'",
"pred": "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'",
"gold": "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'",
"em_norm": 1,
"ex": 1
},
{
"idx": 497,
"db_id": "battle_death",
"question": "What are the name and results of the battles when the bulgarian commander is not 'Boril'",
"pred": "SELECT name, result FROM battle WHERE bulgarian_commander > 'Boril'",
"gold": "SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril'",
"em_norm": 0,
"ex": 1
},
{
"idx": 498,
"db_id": "battle_death",
"question": "What are the different ids and names of the battles that lost any 'Brig' type shipes",
"pred": "SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.lost_in_battle = T2.id WHERE T2.ship_type = 'Brig'",
"gold": "SELECT DISTINCT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'",
"em_norm": 0,
"ex": 0
},
{
"idx": 499,
"db_id": "battle_death",
"question": "What are the ids and names of the battles that led to more than 10 people killed in total",
"pred": "SELECT T1.id, T1.name FROM battle AS T1 JOIN death AS T2 ON T1.id = T2.caused_by_ship_id GROUP BY T1.id HAVING COUNT(*) > 10",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 500,
"db_id": "battle_death",
"question": "What is the ship id and name that caused most total injuries",
"pred": "SELECT T1.id, T1.name FROM ship AS T1 JOIN death AS T2 ON T1.id = T2.caused_by_ship_id GROUP BY T1.id ORDER BY SUM(T2.injured) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 501,
"db_id": "battle_death",
"question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'",
"pred": "SELECT DISTINCT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.bulgarian_commander = 'Kaloyan' INTERSECT SELECT DISTINCT T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.latin_commander = 'Baldwin I'",
"gold": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'",
"em_norm": 0,
"ex": 0
},
{
"idx": 502,
"db_id": "battle_death",
"question": "How many different results are there for the battles",
"pred": "SELECT COUNT(DISTINCT result) FROM battle",
"gold": "SELECT COUNT(DISTINCT RESULT) FROM battle",
"em_norm": 1,
"ex": 1
},
{
"idx": 503,
"db_id": "battle_death",
"question": "How many battles did not lose any ship with tonnage '225'",
"pred": "SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225')",
"gold": "SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225')",
"em_norm": 1,
"ex": 1
},
{
"idx": 504,
"db_id": "battle_death",
"question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'",
"pred": "SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.lost_in_battle = T2.id JOIN battle AS T3 ON T2.battle = T3.id 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'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 505,
"db_id": "battle_death",
"question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'",
"pred": "SELECT name, result, bulgarian_commander FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE location = 'English Channel')",
"gold": "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'",
"em_norm": 0,
"ex": 1
},
{
"idx": 506,
"db_id": "battle_death",
"question": "What are the notes of the death events which has substring 'East'",
"pred": "SELECT Note FROM death WHERE Note LIKE '%East%'",
"gold": "SELECT note FROM death WHERE note LIKE '%East%'",
"em_norm": 1,
"ex": 1
},
{
"idx": 507,
"db_id": "student_transcripts_tracking",
"question": "what are all the addresses including line 1 and line 2",
"pred": "SELECT address FROM addresses WHERE line_1 LIKE '%2' AND line_2 LIKE '%2'",
"gold": "SELECT line_1, line_2 FROM addresses",
"em_norm": 0,
"ex": 0
},
{
"idx": 508,
"db_id": "student_transcripts_tracking",
"question": "What is the first and second line for all addresses",
"pred": "SELECT T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id",
"gold": "SELECT line_1, line_2 FROM addresses",
"em_norm": 0,
"ex": 0
},
{
"idx": 509,
"db_id": "student_transcripts_tracking",
"question": "How many courses in total are listed",
"pred": "SELECT COUNT(*) FROM COURSES",
"gold": "SELECT COUNT(*) FROM Courses",
"em_norm": 1,
"ex": 1
},
{
"idx": 510,
"db_id": "student_transcripts_tracking",
"question": "How many courses are there",
"pred": "SELECT COUNT(*) FROM COURSES",
"gold": "SELECT COUNT(*) FROM Courses",
"em_norm": 1,
"ex": 1
},
{
"idx": 511,
"db_id": "student_transcripts_tracking",
"question": "How is the math course described",
"pred": "SELECT course_description FROM COURSES WHERE course_name = \"Math\"",
"gold": "SELECT course_description FROM Courses WHERE course_name = 'math'",
"em_norm": 1,
"ex": 0
},
{
"idx": 512,
"db_id": "student_transcripts_tracking",
"question": "What are the descriptions for all the math courses",
"pred": "SELECT course_description FROM courses WHERE course_name = \"Math\"",
"gold": "SELECT course_description FROM Courses WHERE course_name = 'math'",
"em_norm": 1,
"ex": 0
},
{
"idx": 513,
"db_id": "student_transcripts_tracking",
"question": "What is the zip code of the address in the city Port Chelsea",
"pred": "SELECT zip_postcode FROM addresses WHERE city = \"Port Chelsea\"",
"gold": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'",
"em_norm": 1,
"ex": 1
},
{
"idx": 514,
"db_id": "student_transcripts_tracking",
"question": "What is the zip code for Port Chelsea",
"pred": "SELECT zip_postcode FROM addresses WHERE city = \"Port Chelsea\"",
"gold": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'",
"em_norm": 1,
"ex": 1
},
{
"idx": 515,
"db_id": "student_transcripts_tracking",
"question": "Which department offers the most number of degrees? List department name and id",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 516,
"db_id": "student_transcripts_tracking",
"question": "What is the name and id of the department with the most number of degrees",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 517,
"db_id": "student_transcripts_tracking",
"question": "How many departments offer any degree",
"pred": "SELECT COUNT(*) FROM degree_programs",
"gold": "SELECT COUNT(DISTINCT department_id) FROM Degree_Programs",
"em_norm": 0,
"ex": 0
},
{
"idx": 518,
"db_id": "student_transcripts_tracking",
"question": "How many different departments offer degrees",
"pred": "SELECT COUNT(DISTINCT department_name) FROM degree_programs",
"gold": "SELECT COUNT(DISTINCT department_id) FROM Degree_Programs",
"em_norm": 0,
"ex": 0
},
{
"idx": 519,
"db_id": "student_transcripts_tracking",
"question": "How many different degree names are offered",
"pred": "SELECT COUNT(DISTINCT degree_program_name) FROM degree_programs",
"gold": "SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs",
"em_norm": 0,
"ex": 0
},
{
"idx": 520,
"db_id": "student_transcripts_tracking",
"question": "How many different degrees are offered",
"pred": "SELECT COUNT(DISTINCT degree_program_id) FROM degree_programs",
"gold": "SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs",
"em_norm": 0,
"ex": 0
},
{
"idx": 521,
"db_id": "student_transcripts_tracking",
"question": "How many degrees does the engineering department offer",
"pred": "SELECT COUNT(*) FROM degree_programs AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = \"engineering\"",
"gold": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'",
"em_norm": 0,
"ex": 1
},
{
"idx": 522,
"db_id": "student_transcripts_tracking",
"question": "How many degrees does the engineering department have",
"pred": "SELECT COUNT(*) FROM degree_programs AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = \"engineering\"",
"gold": "SELECT COUNT(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'",
"em_norm": 0,
"ex": 1
},
{
"idx": 523,
"db_id": "student_transcripts_tracking",
"question": "What are the names and descriptions of all the sections",
"pred": "SELECT section_name, section_description FROM SECTIONS",
"gold": "SELECT section_name, section_description FROM Sections",
"em_norm": 1,
"ex": 1
},
{
"idx": 524,
"db_id": "student_transcripts_tracking",
"question": "What are the names and descriptions for all the sections",
"pred": "SELECT section_name, section_description FROM SECTIONS",
"gold": "SELECT section_name, section_description FROM Sections",
"em_norm": 1,
"ex": 1
},
{
"idx": 525,
"db_id": "student_transcripts_tracking",
"question": "What are the names and id of courses having at most 2 sections",
"pred": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) = 2",
"gold": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 526,
"db_id": "student_transcripts_tracking",
"question": "What are the names and ids of every course with less than 2 sections",
"pred": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) 2",
"gold": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 527,
"db_id": "student_transcripts_tracking",
"question": "List the section_name in reversed lexicographical order",
"pred": "SELECT section_name FROM SECTIONS ORDER BY section_name DESC",
"gold": "SELECT section_name FROM Sections ORDER BY section_name DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 528,
"db_id": "student_transcripts_tracking",
"question": "What are the names of the sections in reverse alphabetical order",
"pred": "SELECT section_name FROM SECTIONS ORDER BY section_name ASC",
"gold": "SELECT section_name FROM Sections ORDER BY section_name DESC",
"em_norm": 0,
"ex": 0
},
{
"idx": 529,
"db_id": "student_transcripts_tracking",
"question": "What is the semester which most student registered in? Show both the name and the id",
"pred": "SELECT T1.semester_name, T2.semester_id FROM Student_Enrolment AS T1 JOIN Semesters AS T2 ON T1.semester_id = T2.semester_id GROUP BY T2.semester_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 530,
"db_id": "student_transcripts_tracking",
"question": "For each semester, what is the name and id of the one with the most students registered",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 531,
"db_id": "student_transcripts_tracking",
"question": "What is the description of the department whose name has the substring the computer",
"pred": "SELECT department_description FROM departments WHERE department_name LIKE '%computer%'",
"gold": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'",
"em_norm": 1,
"ex": 1
},
{
"idx": 532,
"db_id": "student_transcripts_tracking",
"question": "What is the department description for the one whose name has the word computer",
"pred": "SELECT department_description FROM departments WHERE department_name LIKE '%computer%'",
"gold": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'",
"em_norm": 1,
"ex": 1
},
{
"idx": 533,
"db_id": "student_transcripts_tracking",
"question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id",
"pred": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Student_Enrolment AS T1 JOIN Semesters AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.student_enrolment_id HAVING COUNT(*) = 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 534,
"db_id": "student_transcripts_tracking",
"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",
"pred": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Student_Enrolment AS T1 JOIN Semesters AS T2 ON T1.student_id = T2.semester_id GROUP BY T1.student_id HAVING COUNT(*) = 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 535,
"db_id": "student_transcripts_tracking",
"question": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name",
"pred": "SELECT T1.first_name, T1.middle_name, T1.last_name FROM Student_Enrolment AS T1 JOIN Degree_Programs AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE T2.degree_summary_name = \"Bachelor\"",
"gold": "SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'",
"em_norm": 0,
"ex": 0
},
{
"idx": 536,
"db_id": "student_transcripts_tracking",
"question": "What are the first, middle, and last names for everybody enrolled in a Bachelors program",
"pred": "SELECT T1.first_name, T1.middle_name, T1.last_name FROM Student_Enrolment AS T1 JOIN Degree_Programs AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE T2.degree_summary_name = \"Bachelors\"",
"gold": "SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'",
"em_norm": 0,
"ex": 0
},
{
"idx": 537,
"db_id": "student_transcripts_tracking",
"question": "Find the kind of program which most number of students are enrolled in",
"pred": "SELECT T1.degree_program_id 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",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 538,
"db_id": "student_transcripts_tracking",
"question": "What is the degree summary name that has the most number of students enrolled",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 539,
"db_id": "student_transcripts_tracking",
"question": "Find the program which most number of students are enrolled in. List both the id and the summary",
"pred": "SELECT T1.degree_program_id, T2.degree_summary_name FROM Student_Enrolment AS T1 JOIN Courses AS T2 ON T1.student_id = T2.student_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 540,
"db_id": "student_transcripts_tracking",
"question": "What is the program id and the summary of the degree that has the most students enrolled",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 541,
"db_id": "student_transcripts_tracking",
"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",
"pred": "SELECT T1.student_id, T2.first_name, T2.middle_name, T2.last_name, COUNT(*) FROM Student_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 542,
"db_id": "student_transcripts_tracking",
"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",
"pred": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_enrolment_id, COUNT(*) FROM Student_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_enrolment_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 543,
"db_id": "student_transcripts_tracking",
"question": "Which semesters do not have any student enrolled? List the semester name",
"pred": "SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment)",
"gold": "SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment)",
"em_norm": 1,
"ex": 1
},
{
"idx": 544,
"db_id": "student_transcripts_tracking",
"question": "What is the name of the semester with no students enrolled",
"pred": "SELECT semester_name FROM Semesters EXCEPT SELECT T1.semester_name FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id",
"gold": "SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment)",
"em_norm": 0,
"ex": 1
},
{
"idx": 545,
"db_id": "student_transcripts_tracking",
"question": "What are all the course names of the courses which ever have students enrolled in",
"pred": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id",
"gold": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 546,
"db_id": "student_transcripts_tracking",
"question": "What are the names of all courses that have some students enrolled",
"pred": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id",
"gold": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 547,
"db_id": "student_transcripts_tracking",
"question": "What's the name of the course with most number of enrollments",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 548,
"db_id": "student_transcripts_tracking",
"question": "What is the name of the course with the most students enrolled",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 549,
"db_id": "student_transcripts_tracking",
"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",
"pred": "SELECT last_name FROM Students WHERE current_address_id = 'A' AND state_province_county = \"North Carolina\" EXCEPT SELECT T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 550,
"db_id": "student_transcripts_tracking",
"question": "What are the last name of the students who live in North Carolina but have not registered in any degree programs",
"pred": "SELECT last_name FROM Students WHERE current_address_id = 'North Carolina' EXCEPT SELECT T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degrees AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.state_province_county = \"North Carolina\"",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 551,
"db_id": "student_transcripts_tracking",
"question": "Show the date and id of the transcript with at least 2 course results",
"pred": "SELECT T1.transcript_date, T1.transcript_id FROM transcripts AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 552,
"db_id": "student_transcripts_tracking",
"question": "What is the date and id of the transcript with at least 2 courses listed",
"pred": "SELECT T1.transcript_date, T1.transcript_id FROM transcripts AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 553,
"db_id": "student_transcripts_tracking",
"question": "What is the phone number of the man with the first name Timmothy and the last name Ward",
"pred": "SELECT cell_mobile_number FROM Addresses WHERE first_name = \"Timmothy\" AND last_name = \"Ward\"",
"gold": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'",
"em_norm": 0,
"ex": 0
},
{
"idx": 554,
"db_id": "student_transcripts_tracking",
"question": "What is the mobile phone number of the student named Timmothy Ward",
"pred": "SELECT cell_mobile_number FROM Students WHERE first_name = \"Timmothy\" AND last_name = \"Ward\"",
"gold": "SELECT cell_mobile_number FROM students WHERE first_name = 'timmothy' AND last_name = 'ward'",
"em_norm": 1,
"ex": 0
},
{
"idx": 555,
"db_id": "student_transcripts_tracking",
"question": "Who is the first student to register? List the first name, middle name and last name",
"pred": "SELECT first_name, middle_name, last_name FROM Student_Enrolment",
"gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 556,
"db_id": "student_transcripts_tracking",
"question": "What is the first, middle, and last name of the first student to register",
"pred": "SELECT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id",
"gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 557,
"db_id": "student_transcripts_tracking",
"question": "Who is the earliest graduate of the school? List the first name, middle name and last name",
"pred": "SELECT first_name, middle_name, last_name FROM Student_Enrolment ORDER BY date_first_registered LIMIT 1",
"gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 558,
"db_id": "student_transcripts_tracking",
"question": "What is the first, middle, and last name of the earliest school graduate",
"pred": "SELECT first_name, middle_name, last_name FROM Student_Enrolment ORDER BY date_first_registered LIMIT 1",
"gold": "SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 559,
"db_id": "student_transcripts_tracking",
"question": "Whose permanent address is different from his or her current address? List his or her first name",
"pred": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.permanent_address_id = T2.address_id WHERE T2.current_address_id > T2.address_id",
"gold": "SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 560,
"db_id": "student_transcripts_tracking",
"question": "What is the first name of the student whose permanent address is different from his or her current one",
"pred": "SELECT T1.first_name FROM Students AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.permanent_address_id > T2.current_address_id",
"gold": "SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 561,
"db_id": "student_transcripts_tracking",
"question": "Which address holds the most number of students currently? List the address id and all lines",
"pred": "SELECT T1.address_id, T1.line_3 FROM addresses AS T1 JOIN students AS T2 ON T1.address_id = T2.address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 562,
"db_id": "student_transcripts_tracking",
"question": "What is the id, line 1, and line 2 of the address with the most students",
"pred": "SELECT T1.address_id, T1.line_1, T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id GROUP BY T1.address_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 563,
"db_id": "student_transcripts_tracking",
"question": "On average, when were the transcripts printed",
"pred": "SELECT AVG(T1.transcript_date) FROM transcripts AS T1 JOIN transcripts AS T2 ON T1.transcript_id = T2.transcript_id",
"gold": "SELECT AVG(transcript_date) FROM Transcripts",
"em_norm": 0,
"ex": 1
},
{
"idx": 564,
"db_id": "student_transcripts_tracking",
"question": "What is the average transcript date",
"pred": "SELECT AVG(transcript_date) FROM transcripts",
"gold": "SELECT AVG(transcript_date) FROM Transcripts",
"em_norm": 1,
"ex": 1
},
{
"idx": 565,
"db_id": "student_transcripts_tracking",
"question": "When is the first transcript released? List the date and details",
"pred": "SELECT date_first_registered, date_first_details FROM transcripts",
"gold": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 566,
"db_id": "student_transcripts_tracking",
"question": "What is the earliest date of a transcript release, and what details can you tell me",
"pred": "SELECT MIN(transcript_date), other_details FROM transcripts",
"gold": "SELECT transcript_date, other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 567,
"db_id": "student_transcripts_tracking",
"question": "How many transcripts are released",
"pred": "SELECT COUNT(*) FROM transcripts",
"gold": "SELECT COUNT(*) FROM Transcripts",
"em_norm": 1,
"ex": 1
},
{
"idx": 568,
"db_id": "student_transcripts_tracking",
"question": "How many transcripts are listed",
"pred": "SELECT COUNT(*) FROM transcripts",
"gold": "SELECT COUNT(*) FROM Transcripts",
"em_norm": 1,
"ex": 1
},
{
"idx": 569,
"db_id": "student_transcripts_tracking",
"question": "What is the last transcript release date",
"pred": "SELECT date_last FROM transcripts",
"gold": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 570,
"db_id": "student_transcripts_tracking",
"question": "When was the last transcript released",
"pred": "SELECT date_last FROM transcripts",
"gold": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 571,
"db_id": "student_transcripts_tracking",
"question": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id",
"pred": "SELECT COUNT(*), T1.transcript_id FROM transcripts AS T1 JOIN student_enrolment AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id",
"gold": "SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 572,
"db_id": "student_transcripts_tracking",
"question": "What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id",
"pred": "SELECT T1.course_id, MAX(T2.student_enrolment_id) FROM transcript_contents AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.transcript_id",
"gold": "SELECT COUNT(*), student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 573,
"db_id": "student_transcripts_tracking",
"question": "Show the date of the transcript which shows the least number of results, also list the id",
"pred": "SELECT transcript_date, transcript_id FROM transcripts GROUP BY transcript_id ORDER BY COUNT(*) ASC LIMIT 1",
"gold": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 574,
"db_id": "student_transcripts_tracking",
"question": "What is the date and id of the transcript with the least number of results",
"pred": "SELECT transcript_date, transcript_id FROM transcripts GROUP BY transcript_id ORDER BY COUNT(*) ASC LIMIT 1",
"gold": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 575,
"db_id": "student_transcripts_tracking",
"question": "Find the semester when both Master students and Bachelor students got enrolled in",
"pred": "SELECT T1.semester_name FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id WHERE T2.student_id = 'Master' INTERSECT SELECT T1.semester_name FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id JOIN Student_Enrolment AS T3 ON",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 576,
"db_id": "student_transcripts_tracking",
"question": "What is the id of the semester that had both Masters and Bachelors students enrolled",
"pred": "SELECT semester_id FROM Student_Enrolment WHERE student_id = (SELECT student_id FROM Student_Enrolment WHERE degree_program_id = \"Masters\") INTERSECT SELECT semester_id FROM Semesters WHERE degree_program_id = \"Bachelors\")",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 577,
"db_id": "student_transcripts_tracking",
"question": "How many different addresses do the students currently live",
"pred": "SELECT COUNT(DISTINCT address_id) FROM Students",
"gold": "SELECT COUNT(DISTINCT current_address_id) FROM Students",
"em_norm": 0,
"ex": 0
},
{
"idx": 578,
"db_id": "student_transcripts_tracking",
"question": "What are the different addresses that have students living there",
"pred": "SELECT DISTINCT T1.address FROM addresses AS T1 JOIN students AS T2 ON T1.address_id = T2.permanent_address_id",
"gold": "SELECT COUNT(DISTINCT current_address_id) FROM Students",
"em_norm": 0,
"ex": 0
},
{
"idx": 579,
"db_id": "student_transcripts_tracking",
"question": "List all the student details in reversed lexicographical order",
"pred": "SELECT other_student_details FROM STUDENTS ORDER BY other_student_details",
"gold": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC",
"em_norm": 0,
"ex": 0
},
{
"idx": 580,
"db_id": "student_transcripts_tracking",
"question": "What other details can you tell me about students in reverse alphabetical order",
"pred": "SELECT other_details FROM STUDENTS ORDER BY other_details",
"gold": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC",
"em_norm": 0,
"ex": 0
},
{
"idx": 581,
"db_id": "student_transcripts_tracking",
"question": "Describe the section h",
"pred": "SELECT section_description FROM sections WHERE section_name = \"h\"",
"gold": "SELECT section_description FROM Sections WHERE section_name = 'h'",
"em_norm": 1,
"ex": 1
},
{
"idx": 582,
"db_id": "student_transcripts_tracking",
"question": "What is the description for the section named h",
"pred": "SELECT section_description FROM sections WHERE section_name = \"h\"",
"gold": "SELECT section_description FROM Sections WHERE section_name = 'h'",
"em_norm": 1,
"ex": 1
},
{
"idx": 583,
"db_id": "student_transcripts_tracking",
"question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582",
"pred": "SELECT first_name FROM Students WHERE permanent_address_id = 'Haiti' OR cell_mobile_number = '09700166582'",
"gold": "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'",
"em_norm": 0,
"ex": 1
},
{
"idx": 584,
"db_id": "student_transcripts_tracking",
"question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582",
"pred": "SELECT first_name FROM Students WHERE permanent_address_id = 'Haiti' OR cell_mobile_number = '09700166582'",
"gold": "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'",
"em_norm": 0,
"ex": 1
},
{
"idx": 585,
"db_id": "tvshow",
"question": "List the title of all cartoons in alphabetical order",
"pred": "SELECT title FROM cartoon ORDER BY title",
"gold": "SELECT Title FROM Cartoon ORDER BY title",
"em_norm": 1,
"ex": 1
},
{
"idx": 586,
"db_id": "tvshow",
"question": "What are the titles of the cartoons sorted alphabetically",
"pred": "SELECT title FROM cartoon ORDER BY title",
"gold": "SELECT Title FROM Cartoon ORDER BY title",
"em_norm": 1,
"ex": 1
},
{
"idx": 587,
"db_id": "tvshow",
"question": "List all cartoon directed by \"Ben Jones\"",
"pred": "SELECT DISTINCT title FROM cartoon WHERE directed_by = \"Ben Jones\"",
"gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 588,
"db_id": "tvshow",
"question": "What are the names of all cartoons directed by Ben Jones",
"pred": "SELECT title FROM cartoon WHERE directed_by = \"Ben Jones\"",
"gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 589,
"db_id": "tvshow",
"question": "How many cartoons were written by \"Joseph Kuhr\"",
"pred": "SELECT COUNT(*) FROM cartoon WHERE written_by = \"Joseph Kuhr\"",
"gold": "SELECT COUNT(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 590,
"db_id": "tvshow",
"question": "What is the number of cartoones written by Joseph Kuhr",
"pred": "SELECT COUNT(*) FROM cartoon WHERE written_by = \"Joseph Kuhr\"",
"gold": "SELECT COUNT(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 591,
"db_id": "tvshow",
"question": "list all cartoon titles and their directors ordered by their air date",
"pred": "SELECT title, directed_by FROM cartoon ORDER BY original_air_date",
"gold": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date",
"em_norm": 1,
"ex": 1
},
{
"idx": 592,
"db_id": "tvshow",
"question": "What is the name and directors of all the cartoons that are ordered by air date",
"pred": "SELECT title, directed_by FROM cartoon ORDER BY original_air_date",
"gold": "SELECT title, Directed_by FROM Cartoon ORDER BY Original_air_date",
"em_norm": 1,
"ex": 1
},
{
"idx": 593,
"db_id": "tvshow",
"question": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\"",
"pred": "SELECT title FROM cartoon WHERE directed_by = \"Ben Jones\" OR directed_by = \"Brandon Vietti\"",
"gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 594,
"db_id": "tvshow",
"question": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti",
"pred": "SELECT title FROM cartoon WHERE directed_by = \"Ben Jones\" OR directed_by = \"Brandon Vietti\"",
"gold": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 595,
"db_id": "tvshow",
"question": "Which country has the most of TV Channels? List the country and number of TV Channels it has",
"pred": "SELECT country, COUNT(*) FROM tv_channel GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 596,
"db_id": "tvshow",
"question": "What is the country with the most number of TV Channels and how many does it have",
"pred": "SELECT country, COUNT(*) FROM tv_channel GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 597,
"db_id": "tvshow",
"question": "List the number of different series names and contents in the TV Channel table",
"pred": "SELECT COUNT(DISTINCT series_name), content FROM tv_channel",
"gold": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel",
"em_norm": 0,
"ex": 0
},
{
"idx": 598,
"db_id": "tvshow",
"question": "How many different series and contents are listed in the TV Channel table",
"pred": "SELECT COUNT(DISTINCT series_name), content FROM tv_channel",
"gold": "SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel",
"em_norm": 0,
"ex": 0
},
{
"idx": 599,
"db_id": "tvshow",
"question": "What is the content of TV Channel with serial name \"Sky Radio\"",
"pred": "SELECT content FROM tv_channel WHERE series_name = \"Sky Radio\"",
"gold": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 600,
"db_id": "tvshow",
"question": "What is the content of the series Sky Radio",
"pred": "SELECT content FROM tv_channel WHERE series_name = 'Sky Radio'",
"gold": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 601,
"db_id": "tvshow",
"question": "What is the Package Option of TV Channel with serial name \"Sky Radio\"",
"pred": "SELECT Package_Option FROM tv_channel WHERE series_name = \"Sky Radio\"",
"gold": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 602,
"db_id": "tvshow",
"question": "What are the Package Options of the TV Channels whose series names are Sky Radio",
"pred": "SELECT package_option FROM tv_channel WHERE series_name = 'Sky Radio'",
"gold": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 603,
"db_id": "tvshow",
"question": "How many TV Channel using language English",
"pred": "SELECT COUNT(*) FROM tv_channel WHERE language = \"english\"",
"gold": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = \"English\"",
"em_norm": 1,
"ex": 0
},
{
"idx": 604,
"db_id": "tvshow",
"question": "How many TV Channels use the English language",
"pred": "SELECT COUNT(*) FROM tv_channel WHERE language = \"english\"",
"gold": "SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = \"English\"",
"em_norm": 1,
"ex": 0
},
{
"idx": 605,
"db_id": "tvshow",
"question": "List the language used least number of TV Channel. List language and number of TV Channel",
"pred": "SELECT language, COUNT(*) FROM tv_channel GROUP BY language ORDER BY COUNT(*) ASC LIMIT 1",
"gold": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 606,
"db_id": "tvshow",
"question": "What are the languages used by the least number of TV Channels and how many channels use it",
"pred": "SELECT language, COUNT(*) FROM tv_channel GROUP BY language ORDER BY COUNT(*) ASC LIMIT 1",
"gold": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) ASC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 607,
"db_id": "tvshow",
"question": "List each language and the number of TV Channels using it",
"pred": "SELECT language, COUNT(*) FROM tv_channel GROUP BY language",
"gold": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE",
"em_norm": 1,
"ex": 1
},
{
"idx": 608,
"db_id": "tvshow",
"question": "For each language, list the number of TV Channels that use it",
"pred": "SELECT COUNT(*), language FROM tv_channel GROUP BY language",
"gold": "SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE",
"em_norm": 0,
"ex": 0
},
{
"idx": 609,
"db_id": "tvshow",
"question": "What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name",
"pred": "SELECT DISTINCT T1.series_name FROM tv_channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.channel WHERE T2.title = \"The Rise of the Blue Beetle!\"",
"gold": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 610,
"db_id": "tvshow",
"question": "What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"",
"pred": "SELECT t1.series_name FROM tv_channel AS t1 JOIN cartoon AS t2 ON t1.id = t2.channel WHERE t2.title = \"The Rise of the Blue Beetle\"",
"gold": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 611,
"db_id": "tvshow",
"question": "List the title of all Cartoons showed on TV Channel with series name \"Sky Radio\"",
"pred": "SELECT DISTINCT T1.title FROM cartoon AS T1 JOIN tv_channel AS T2 ON T1.id = T2.channel WHERE T2.series_name = \"Sky Radio\"",
"gold": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 612,
"db_id": "tvshow",
"question": "What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"",
"pred": "SELECT t1.title FROM cartoon AS t1 JOIN tv_channel AS t2 ON t1.id = t2.channel WHERE t2.series_name = \"Sky Radio\"",
"gold": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 613,
"db_id": "tvshow",
"question": "List the Episode of all TV series sorted by rating",
"pred": "SELECT episode FROM tv_series ORDER BY rating",
"gold": "SELECT Episode FROM TV_series ORDER BY rating",
"em_norm": 1,
"ex": 1
},
{
"idx": 614,
"db_id": "tvshow",
"question": "What are all of the episodes ordered by ratings",
"pred": "SELECT episode FROM tv_series ORDER BY rating",
"gold": "SELECT Episode FROM TV_series ORDER BY rating",
"em_norm": 1,
"ex": 1
},
{
"idx": 615,
"db_id": "tvshow",
"question": "List top 3 highest Rating TV series. List the TV series's Episode and Rating",
"pred": "SELECT T1.episode, T1.rating FROM tv_series AS T1 JOIN tv_series AS T2 ON T1.id = T2.series ORDER BY T2.rating DESC LIMIT 3",
"gold": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3",
"em_norm": 0,
"ex": 0
},
{
"idx": 616,
"db_id": "tvshow",
"question": "What are 3 most highly rated episodes in the TV series table and what were those ratings",
"pred": "SELECT t1.episode, t1.rating FROM tv_series AS t1 JOIN tv_series AS t2 ON t1.id = t2.series_id GROUP BY t1.id ORDER BY COUNT(*) DESC LIMIT 3",
"gold": "SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3",
"em_norm": 0,
"ex": 0
},
{
"idx": 617,
"db_id": "tvshow",
"question": "What is minimum and maximum share of TV series",
"pred": "SELECT MIN(share), MAX(share) FROM tv_series",
"gold": "SELECT MAX(SHARE), MIN(SHARE) FROM TV_series",
"em_norm": 0,
"ex": 0
},
{
"idx": 618,
"db_id": "tvshow",
"question": "What is the maximum and minimum share for the TV series",
"pred": "SELECT MAX(share), MIN(share) FROM tv_series",
"gold": "SELECT MAX(SHARE), MIN(SHARE) FROM TV_series",
"em_norm": 1,
"ex": 1
},
{
"idx": 619,
"db_id": "tvshow",
"question": "What is the air date of TV series with Episode \"A Love of a Lifetime\"",
"pred": "SELECT T1.air_date FROM tv_series AS T1 JOIN cartoon AS T2 ON T1.id = T2.channel WHERE T2.series_name = \"A Love of a Lifetime\"",
"gold": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 620,
"db_id": "tvshow",
"question": "When did the episode \"A Love of a Lifetime\" air",
"pred": "SELECT air_date FROM cartoon WHERE title = \"A Love of a Lifetime\"",
"gold": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 621,
"db_id": "tvshow",
"question": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"",
"pred": "SELECT Weekly_Rank FROM tv_series WHERE Episode = \"A Love of a Lifetime\"",
"gold": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 622,
"db_id": "tvshow",
"question": "What is the weekly rank for the episode \"A Love of a Lifetime\"",
"pred": "SELECT weekly_rank FROM cartoon WHERE title = \"A Love of a Lifetime\"",
"gold": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 623,
"db_id": "tvshow",
"question": "What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name",
"pred": "SELECT DISTINCT T1.series_name FROM tv_channel AS T1 JOIN tv_series AS T2 ON T1.id = T2.series WHERE T2.episode = \"A Love of a Lifetime\"",
"gold": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 624,
"db_id": "tvshow",
"question": "What is the name of the series that has the episode \"A Love of a Lifetime\"",
"pred": "SELECT tv_series_name FROM cartoon WHERE episode = \"A Love of a Lifetime\"",
"gold": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 625,
"db_id": "tvshow",
"question": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\"",
"pred": "SELECT T2.episode FROM tv_channel AS T1 JOIN tv_series AS T2 ON T1.id = T2.channel WHERE T2.series_name = \"Sky Radio\"",
"gold": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 626,
"db_id": "tvshow",
"question": "What is the episode for the TV series named \"Sky Radio\"",
"pred": "SELECT T1.episode FROM tv_series AS T1 JOIN cartoon AS T2 ON T1.id = T2.channel WHERE T2.series_name = \"Sky Radio\"",
"gold": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 627,
"db_id": "tvshow",
"question": "Find the number of cartoons directed by each of the listed directors",
"pred": "SELECT COUNT(*), directed_by FROM cartoon GROUP BY directed_by",
"gold": "SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by",
"em_norm": 1,
"ex": 1
},
{
"idx": 628,
"db_id": "tvshow",
"question": "How many cartoons did each director create",
"pred": "SELECT COUNT(*), directed_by FROM cartoon GROUP BY directed_by",
"gold": "SELECT COUNT(*), Directed_by FROM cartoon GROUP BY Directed_by",
"em_norm": 1,
"ex": 1
},
{
"idx": 629,
"db_id": "tvshow",
"question": "Find the production code and channel of the most recently aired cartoon",
"pred": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1",
"gold": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 630,
"db_id": "tvshow",
"question": "What is the produdction code and channel of the most recent cartoon",
"pred": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1",
"gold": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 631,
"db_id": "tvshow",
"question": "Find the package choice and series name of the TV channel that has high definition TV",
"pred": "SELECT t2.package_option, t2.series_name FROM tv_channel AS t1 JOIN tv_series AS t2 ON t1.id = t2.series WHERE t1.hight_definition_tv = 'yes'",
"gold": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 632,
"db_id": "tvshow",
"question": "What are the package options and the name of the series for the TV Channel that supports high definition TV",
"pred": "SELECT DISTINCT T1.package_option, T1.series_name FROM tv_channel AS T1 JOIN tv_series AS T2 ON T1.id = T2.series WHERE T1.hight_definition_tv = 'Hight'",
"gold": "SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 633,
"db_id": "tvshow",
"question": "which countries' tv channels are playing some cartoon written by Todd Casey",
"pred": "SELECT T1.country FROM tv_channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.channel WHERE T2.written_by = \"Todd Casey\"",
"gold": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'",
"em_norm": 1,
"ex": 1
},
{
"idx": 634,
"db_id": "tvshow",
"question": "What are the countries that have cartoons on TV that were written by Todd Casey",
"pred": "SELECT T1.country FROM tv_channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.channel WHERE T2.written_by = 'Todd Casey'",
"gold": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'",
"em_norm": 1,
"ex": 1
},
{
"idx": 635,
"db_id": "tvshow",
"question": "which countries' tv channels are not playing any cartoon written by Todd Casey",
"pred": "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\"",
"gold": "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'",
"em_norm": 1,
"ex": 1
},
{
"idx": 636,
"db_id": "tvshow",
"question": "What are the countries that are not playing cartoons written by Todd Casey",
"pred": "SELECT country FROM cartoon EXCEPT SELECT T1.country FROM cartoon AS T1 JOIN cartoon AS T2 ON T1.id = T2.channel WHERE T2.written_by = 'Todd Casey'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 637,
"db_id": "tvshow",
"question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang",
"pred": "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' 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 = 'Michael Chang'",
"gold": "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'",
"em_norm": 0,
"ex": 1
},
{
"idx": 638,
"db_id": "tvshow",
"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",
"pred": "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' 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 = 'Michael Chang'",
"gold": "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'",
"em_norm": 0,
"ex": 1
},
{
"idx": 639,
"db_id": "tvshow",
"question": "find the pixel aspect ratio and nation of the tv channels that do not use English",
"pred": "SELECT pixel_aspect_ratio_par, country FROM tv_channel WHERE language > \"english\"",
"gold": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English'",
"em_norm": 0,
"ex": 0
},
{
"idx": 640,
"db_id": "tvshow",
"question": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English",
"pred": "SELECT pixel_aspect_ratio_par, country FROM tv_channel WHERE language > 'english'",
"gold": "SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English'",
"em_norm": 0,
"ex": 0
},
{
"idx": 641,
"db_id": "tvshow",
"question": "find id of the tv channels that from the countries where have more than two tv channels",
"pred": "SELECT t1.id FROM tv_channel AS t1 JOIN cartoon AS t2 ON t1.id = t2.channel GROUP BY t2.country HAVING COUNT(*) > 2",
"gold": "SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 642,
"db_id": "tvshow",
"question": "What are the ids of all tv channels that have more than 2 TV channels",
"pred": "SELECT id FROM tv_channel GROUP BY id HAVING COUNT(*) > 2",
"gold": "SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 643,
"db_id": "tvshow",
"question": "find the id of tv channels that do not play any cartoon directed by Ben Jones",
"pred": "SELECT tv_channel FROM tv_channel EXCEPT SELECT t1.id FROM tv_channel AS t1 JOIN cartoon AS t2 ON t1.id = t2.channel WHERE t2.directed_by = \"Ben Jones\"",
"gold": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'",
"em_norm": 0,
"ex": 0
},
{
"idx": 644,
"db_id": "tvshow",
"question": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones",
"pred": "SELECT tv_channel FROM tv_channel EXCEPT SELECT t1.id FROM tv_channel AS t1 JOIN cartoon AS t2 ON t1.id = t2.channel WHERE t2.directed_by = \"Ben Jones\"",
"gold": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'",
"em_norm": 0,
"ex": 0
},
{
"idx": 645,
"db_id": "tvshow",
"question": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones",
"pred": "SELECT package_option FROM tv_channel EXCEPT SELECT t1.channel FROM tv_channel AS t1 JOIN cartoon AS t2 ON t1.id = t2.channel WHERE t2.directed_by = \"Ben Jones\"",
"gold": "SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')",
"em_norm": 0,
"ex": 0
},
{
"idx": 646,
"db_id": "tvshow",
"question": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones",
"pred": "SELECT package_option FROM tv_channel EXCEPT SELECT t1.channel FROM tv_channel AS t1 JOIN cartoon AS t2 ON t1.id = t2.channel WHERE t2.directed_by = \"Ben Jones\"",
"gold": "SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')",
"em_norm": 0,
"ex": 0
},
{
"idx": 647,
"db_id": "poker_player",
"question": "How many poker players are there",
"pred": "SELECT COUNT(*) FROM poker_player",
"gold": "SELECT COUNT(*) FROM poker_player",
"em_norm": 1,
"ex": 1
},
{
"idx": 648,
"db_id": "poker_player",
"question": "Count the number of poker players",
"pred": "SELECT COUNT(*) FROM poker_player",
"gold": "SELECT COUNT(*) FROM poker_player",
"em_norm": 1,
"ex": 1
},
{
"idx": 649,
"db_id": "poker_player",
"question": "List the earnings of poker players in descending order",
"pred": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC",
"gold": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 650,
"db_id": "poker_player",
"question": "What are the earnings of poker players, ordered descending by value",
"pred": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC",
"gold": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 651,
"db_id": "poker_player",
"question": "List the final tables made and the best finishes of poker players",
"pred": "SELECT Final_Table_Made, Best_finish FROM poker_player",
"gold": "SELECT Final_Table_Made, Best_Finish FROM poker_player",
"em_norm": 1,
"ex": 1
},
{
"idx": 652,
"db_id": "poker_player",
"question": "What are the final tables made and best finishes for all poker players",
"pred": "SELECT T2.Final_Table_Made, T2.Best_finish FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID",
"gold": "SELECT Final_Table_Made, Best_Finish FROM poker_player",
"em_norm": 0,
"ex": 0
},
{
"idx": 653,
"db_id": "poker_player",
"question": "What is the average earnings of poker players",
"pred": "SELECT AVG(Earnings) FROM poker_player",
"gold": "SELECT AVG(Earnings) FROM poker_player",
"em_norm": 1,
"ex": 1
},
{
"idx": 654,
"db_id": "poker_player",
"question": "Return the average earnings across all poker players",
"pred": "SELECT AVG(Earnings) FROM poker_player",
"gold": "SELECT AVG(Earnings) FROM poker_player",
"em_norm": 1,
"ex": 1
},
{
"idx": 655,
"db_id": "poker_player",
"question": "What is the money rank of the poker player with the highest earnings",
"pred": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1",
"gold": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 656,
"db_id": "poker_player",
"question": "Return the money rank of the player with the greatest earnings",
"pred": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1",
"gold": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 657,
"db_id": "poker_player",
"question": "What is the maximum number of final tables made among poker players with earnings less than 200000",
"pred": "SELECT MAX(T2.Final_Table_Made) FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Earnings 200000",
"gold": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000",
"em_norm": 0,
"ex": 0
},
{
"idx": 658,
"db_id": "poker_player",
"question": "Return the maximum final tables made across all poker players who have earnings below 200000",
"pred": "SELECT MAX(T2.Final_Table_Made) FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Earnings 200000",
"gold": "SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000",
"em_norm": 0,
"ex": 0
},
{
"idx": 659,
"db_id": "poker_player",
"question": "What are the names of poker players",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID",
"gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID",
"em_norm": 0,
"ex": 1
},
{
"idx": 660,
"db_id": "poker_player",
"question": "Return the names of all the poker players",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID",
"gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID",
"em_norm": 0,
"ex": 1
},
{
"idx": 661,
"db_id": "poker_player",
"question": "What are the names of poker players whose earnings is higher than 300000",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Earnings > 300000",
"gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000",
"em_norm": 0,
"ex": 1
},
{
"idx": 662,
"db_id": "poker_player",
"question": "Give the names of poker players who have earnings above 300000",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Earnings > 300000",
"gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000",
"em_norm": 0,
"ex": 1
},
{
"idx": 663,
"db_id": "poker_player",
"question": "List the names of poker players ordered by the final tables made in ascending order",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Final_Table_Made ASC",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 664,
"db_id": "poker_player",
"question": "What are the names of poker players, ordered ascending by the number of final tables they have made",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Final_Table_Made",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 665,
"db_id": "poker_player",
"question": "What is the birth date of the poker player with the lowest earnings",
"pred": "SELECT T2.Birth_Date FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Earnings LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 666,
"db_id": "poker_player",
"question": "Return the birth date of the poker player with the lowest earnings",
"pred": "SELECT T2.Birth_Date FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Earnings LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 667,
"db_id": "poker_player",
"question": "What is the money rank of the tallest poker player",
"pred": "SELECT Money_Rank FROM poker_player ORDER BY Height DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 668,
"db_id": "poker_player",
"question": "Return the money rank of the poker player with the greatest height",
"pred": "SELECT Money_Rank FROM poker_player ORDER BY Height DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 669,
"db_id": "poker_player",
"question": "What is the average earnings of poker players with height higher than 200",
"pred": "SELECT AVG(Earnings) FROM poker_player WHERE Height > 200",
"gold": "SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200",
"em_norm": 0,
"ex": 0
},
{
"idx": 670,
"db_id": "poker_player",
"question": "Give average earnings of poker players who are taller than 200",
"pred": "SELECT AVG(Earnings) FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200",
"gold": "SELECT AVG(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200",
"em_norm": 0,
"ex": 1
},
{
"idx": 671,
"db_id": "poker_player",
"question": "What are the names of poker players in descending order of earnings",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Earnings DESC",
"gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC",
"em_norm": 0,
"ex": 1
},
{
"idx": 672,
"db_id": "poker_player",
"question": "Return the names of poker players sorted by their earnings descending",
"pred": "SELECT T2.Name FROM poker_player AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Earnings DESC",
"gold": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC",
"em_norm": 0,
"ex": 1
},
{
"idx": 673,
"db_id": "poker_player",
"question": "What are different nationalities of people and the corresponding number of people from each nation",
"pred": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality",
"gold": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality",
"em_norm": 1,
"ex": 1
},
{
"idx": 674,
"db_id": "poker_player",
"question": "How many people are there of each nationality",
"pred": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality",
"gold": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality",
"em_norm": 1,
"ex": 1
},
{
"idx": 675,
"db_id": "poker_player",
"question": "What is the most common nationality of people",
"pred": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 676,
"db_id": "poker_player",
"question": "Give the nationality that is most common across all people",
"pred": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 677,
"db_id": "poker_player",
"question": "What are the nationalities that are shared by at least two people",
"pred": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2",
"gold": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 678,
"db_id": "poker_player",
"question": "Return the nationalities for which there are two or more people",
"pred": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2",
"gold": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2",
"em_norm": 1,
"ex": 1
},
{
"idx": 679,
"db_id": "poker_player",
"question": "List the names and birth dates of people in ascending alphabetical order of name",
"pred": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC",
"gold": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC",
"em_norm": 1,
"ex": 1
},
{
"idx": 680,
"db_id": "poker_player",
"question": "What are the names and birth dates of people, ordered by their names in alphabetical order",
"pred": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC",
"gold": "SELECT Name, Birth_Date FROM people ORDER BY Name ASC",
"em_norm": 1,
"ex": 1
},
{
"idx": 681,
"db_id": "poker_player",
"question": "Show names of people whose nationality is not \"Russia\"",
"pred": "SELECT Name FROM people WHERE Nationality > 'Russia'",
"gold": "SELECT Name FROM people WHERE Nationality <> \"Russia\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 682,
"db_id": "poker_player",
"question": "What are the names of people who are not from Russia",
"pred": "SELECT Name FROM people WHERE Nationality > 'Russia'",
"gold": "SELECT Name FROM people WHERE Nationality <> \"Russia\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 683,
"db_id": "poker_player",
"question": "List the names of people that are not poker players",
"pred": "SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)",
"gold": "SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)",
"em_norm": 1,
"ex": 1
},
{
"idx": 684,
"db_id": "poker_player",
"question": "What are the names of people who do not play poker",
"pred": "SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)",
"gold": "SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM poker_player)",
"em_norm": 1,
"ex": 1
},
{
"idx": 685,
"db_id": "poker_player",
"question": "How many distinct nationalities are there",
"pred": "SELECT COUNT(DISTINCT Nationality) FROM people",
"gold": "SELECT COUNT(DISTINCT Nationality) FROM people",
"em_norm": 1,
"ex": 1
},
{
"idx": 686,
"db_id": "poker_player",
"question": "Count the number of different nationalities",
"pred": "SELECT COUNT(DISTINCT Nationality) FROM people",
"gold": "SELECT COUNT(DISTINCT Nationality) FROM people",
"em_norm": 1,
"ex": 1
},
{
"idx": 687,
"db_id": "voter_1",
"question": "How many states are there",
"pred": "SELECT COUNT(*) FROM area_code_state",
"gold": "SELECT COUNT(*) FROM area_code_state",
"em_norm": 1,
"ex": 1
},
{
"idx": 688,
"db_id": "voter_1",
"question": "List the contestant numbers and names, ordered by contestant name descending",
"pred": "SELECT Contestant_number, Contestant_name FROM Contestants ORDER BY Contestant_name DESC",
"gold": "SELECT contestant_number, contestant_name FROM contestants ORDER BY contestant_name DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 689,
"db_id": "voter_1",
"question": "List the vote ids, phone numbers and states of all votes",
"pred": "SELECT vote_id, phone_number, state FROM votes",
"gold": "SELECT vote_id, phone_number, state FROM votes",
"em_norm": 1,
"ex": 1
},
{
"idx": 690,
"db_id": "voter_1",
"question": "What are the maximum and minimum values of area codes",
"pred": "SELECT MAX(area_code), MIN(area_code) FROM area_code",
"gold": "SELECT MAX(area_code), MIN(area_code) FROM area_code_state",
"em_norm": 0,
"ex": 0
},
{
"idx": 691,
"db_id": "voter_1",
"question": "What is last date created of votes from the state 'CA'",
"pred": "SELECT created FROM votes WHERE state = 'CA'",
"gold": "SELECT MAX(created) FROM votes WHERE state = 'CA'",
"em_norm": 0,
"ex": 1
},
{
"idx": 692,
"db_id": "voter_1",
"question": "What are the names of the contestants whose names are not 'Jessie Alloway'",
"pred": "SELECT contestant_name FROM contestants EXCEPT SELECT contestant_name FROM contestants WHERE contestant_name = 'Jessie Alloway'",
"gold": "SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway'",
"em_norm": 0,
"ex": 1
},
{
"idx": 693,
"db_id": "voter_1",
"question": "What are the distinct states and create time of all votes",
"pred": "SELECT DISTINCT state, created FROM votes",
"gold": "SELECT DISTINCT state, created FROM votes",
"em_norm": 1,
"ex": 1
},
{
"idx": 694,
"db_id": "voter_1",
"question": "What are the contestant numbers and names of the contestants who had at least two votes",
"pred": "SELECT T2.contestant_number, T2.contestant_name FROM votes AS T1 JOIN contestants AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T2.contestant_number HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 695,
"db_id": "voter_1",
"question": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes",
"pred": "SELECT T2.contestant_number, T2.contestant_name FROM votes AS T1 JOIN contestants AS T2 ON T1.contestant_number = T2.contestant_number ORDER BY T1.votes ASC LIMIT 1",
"gold": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) ASC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 696,
"db_id": "voter_1",
"question": "What are the number of votes from state 'NY' or 'CA'",
"pred": "SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA'",
"gold": "SELECT COUNT(*) FROM votes WHERE state = 'NY' OR state = 'CA'",
"em_norm": 1,
"ex": 1
},
{
"idx": 697,
"db_id": "voter_1",
"question": "How many contestants did not get voted",
"pred": "SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes)",
"gold": "SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes)",
"em_norm": 1,
"ex": 1
},
{
"idx": 698,
"db_id": "voter_1",
"question": "What is the area code in which the most voters voted",
"pred": "SELECT area_code FROM votes GROUP BY area_code_state ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 699,
"db_id": "voter_1",
"question": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'",
"pred": "SELECT T1.created, T1.state, T1.phone_number FROM votes AS T1 JOIN contestants AS T2 ON T1.contestant_number = T2.contestant_number WHERE T2.contestant_name = 'Tabatha Gehling'",
"gold": "SELECT T2.created, T2.state, T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'",
"em_norm": 0,
"ex": 1
},
{
"idx": 700,
"db_id": "voter_1",
"question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'",
"pred": "SELECT T1.area_code FROM votes AS T1 JOIN contestants AS T2 ON T1.contestant_number = T2.contestant_number WHERE T2.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T1.area_code FROM votes AS T1 JOIN contestants AS T2 ON T1.contestant_number = T2.contestant_number WHERE T2.contestant_name = 'Kelly Clauss'",
"gold": "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'",
"em_norm": 0,
"ex": 0
},
{
"idx": 701,
"db_id": "voter_1",
"question": "Return the names of the contestants whose names contain the substring 'Al'",
"pred": "SELECT contestant_name FROM contestants WHERE contestant_name LIKE '%Al%'",
"gold": "SELECT contestant_name FROM contestants WHERE contestant_name LIKE \"%al%\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 702,
"db_id": "world_1",
"question": "What are the names of all the countries that became independent after 1950",
"pred": "SELECT name FROM country WHERE indepyear > 1950",
"gold": "SELECT Name FROM country WHERE IndepYear > 1950",
"em_norm": 1,
"ex": 1
},
{
"idx": 703,
"db_id": "world_1",
"question": "Give the names of the nations that were founded after 1950",
"pred": "SELECT name FROM country WHERE indepyear > 1950",
"gold": "SELECT Name FROM country WHERE IndepYear > 1950",
"em_norm": 1,
"ex": 1
},
{
"idx": 704,
"db_id": "world_1",
"question": "How many countries have a republic as their form of government",
"pred": "SELECT COUNT(*) FROM country WHERE governmentform = 'Republic'",
"gold": "SELECT COUNT(*) FROM country WHERE GovernmentForm = \"Republic\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 705,
"db_id": "world_1",
"question": "How many countries have governments that are republics",
"pred": "SELECT COUNT(*) FROM country WHERE governmentform = 'Republic'",
"gold": "SELECT COUNT(*) FROM country WHERE GovernmentForm = \"Republic\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 706,
"db_id": "world_1",
"question": "What is the total surface area of the countries in the Caribbean region",
"pred": "SELECT SUM(surfacearea) FROM country WHERE region = 'Carribbean'",
"gold": "SELECT SUM(SurfaceArea) FROM country WHERE Region = \"Caribbean\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 707,
"db_id": "world_1",
"question": "How much surface area do the countires in the Carribean cover together",
"pred": "SELECT SUM(surfacearea) FROM country WHERE region = 'Carribean'",
"gold": "SELECT SUM(SurfaceArea) FROM country WHERE Region = \"Caribbean\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 708,
"db_id": "world_1",
"question": "Which continent is Anguilla in",
"pred": "SELECT continent FROM country WHERE name = 'Anguilla'",
"gold": "SELECT Continent FROM country WHERE Name = \"Anguilla\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 709,
"db_id": "world_1",
"question": "What is the continent name which Anguilla belongs to",
"pred": "SELECT continent FROM country WHERE name = 'Anguilla'",
"gold": "SELECT Continent FROM country WHERE Name = \"Anguilla\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 710,
"db_id": "world_1",
"question": "Which region is the city Kabul located in",
"pred": "SELECT region FROM city WHERE name = 'Kabul'",
"gold": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 711,
"db_id": "world_1",
"question": "What region is Kabul in",
"pred": "SELECT region FROM city WHERE name = 'Kabul'",
"gold": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 712,
"db_id": "world_1",
"question": "Which language is the most popular in Aruba",
"pred": "SELECT T1.language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T2.name = 'Aruba' GROUP BY T1.language ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 713,
"db_id": "world_1",
"question": "What language is predominantly spoken in Aruba",
"pred": "SELECT language FROM countrylanguage WHERE countrycode = 'Aruba' GROUP BY language HAVING COUNT(*) >= 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 714,
"db_id": "world_1",
"question": "What are the population and life expectancies in Brazil",
"pred": "SELECT population, lifeexpectancy FROM country WHERE name = 'Brazil'",
"gold": "SELECT Population, LifeExpectancy FROM country WHERE Name = \"Brazil\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 715,
"db_id": "world_1",
"question": "Give me Brazil’s population and life expectancies",
"pred": "SELECT population, lifeexpectancy FROM country WHERE name = 'Brazil'",
"gold": "SELECT Population, LifeExpectancy FROM country WHERE Name = \"Brazil\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 716,
"db_id": "world_1",
"question": "What are the region and population of Angola",
"pred": "SELECT region, population FROM country WHERE countrycode = 'Angola'",
"gold": "SELECT Population, Region FROM country WHERE Name = \"Angola\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 717,
"db_id": "world_1",
"question": "What region does Angola belong to and what is its population",
"pred": "SELECT T1.region, T2.population FROM country AS T1 JOIN city AS T2 ON T1.countrycode = T2.code WHERE T1.name = 'Angola'",
"gold": "SELECT Population, Region FROM country WHERE Name = \"Angola\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 718,
"db_id": "world_1",
"question": "What is the average expected life expectancy for countries in the region of Central Africa",
"pred": "SELECT AVG(lifeexpectancy) FROM country WHERE region = 'Central Africa'",
"gold": "SELECT AVG(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 719,
"db_id": "world_1",
"question": "How long is the people’s average life expectancy in Central Africa",
"pred": "SELECT AVG(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"",
"gold": "SELECT AVG(LifeExpectancy) FROM country WHERE Region = \"Central Africa\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 720,
"db_id": "world_1",
"question": "What is the name of country that has the shortest life expectancy in Asia",
"pred": "SELECT name FROM country ORDER BY lifeexpectancy ASC LIMIT 1",
"gold": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 721,
"db_id": "world_1",
"question": "Give the name of the country in Asia with the lowest life expectancy",
"pred": "SELECT name FROM country WHERE region = 'Asia' ORDER BY lifeexpectancy LIMIT 1",
"gold": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 722,
"db_id": "world_1",
"question": "What is the total population and maximum GNP in Asia",
"pred": "SELECT SUM(population), MAX(gnp) FROM country WHERE region = 'Asie'",
"gold": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = \"Asia\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 723,
"db_id": "world_1",
"question": "How many people live in Asia, and what is the largest GNP among them",
"pred": "SELECT T1.population, T1.gnp FROM country AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.region = 'Asia' ORDER BY T1.gnp DESC LIMIT 1",
"gold": "SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = \"Asia\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 724,
"db_id": "world_1",
"question": "What is the average life expectancy in African countries that are republics",
"pred": "SELECT AVG(lifeexpectancy) FROM country WHERE region = \"Africa\" INTERSECT SELECT countrycode FROM country WHERE region = \"Republica\"",
"gold": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 725,
"db_id": "world_1",
"question": "Give the average life expectancy for countries in Africa which are republics",
"pred": "SELECT AVG(lifeexpectancy) FROM country WHERE region = 'Africa' AND region = 'Republica'",
"gold": "SELECT AVG(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 726,
"db_id": "world_1",
"question": "What is the total surface area of the continents Asia and Europe",
"pred": "SELECT SUM(surfacearea) FROM country WHERE continent = 'Asie' INTERSECT SELECT SUM(surfacearea) FROM country WHERE region = 'Europe'",
"gold": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 727,
"db_id": "world_1",
"question": "Give the total surface area covered by countries in Asia or Europe",
"pred": "SELECT SUM(surfacearea) FROM country WHERE region = 'Asie' OR region = 'Europe'",
"gold": "SELECT SUM(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 728,
"db_id": "world_1",
"question": "How many people live in Gelderland district",
"pred": "SELECT SUM(population) FROM city WHERE district = 'Gelderland'",
"gold": "SELECT SUM(Population) FROM city WHERE District = \"Gelderland\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 729,
"db_id": "world_1",
"question": "What is the total population of Gelderland district",
"pred": "SELECT SUM(population) FROM city WHERE district = 'Gelderland'",
"gold": "SELECT SUM(Population) FROM city WHERE District = \"Gelderland\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 730,
"db_id": "world_1",
"question": "What is the average GNP and total population in all nations whose government is US territory",
"pred": "SELECT AVG(gnp), SUM(population) FROM country WHERE governmentform = 'US territory'",
"gold": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = \"US Territory\"",
"em_norm": 1,
"ex": 0
},
{
"idx": 731,
"db_id": "world_1",
"question": "Give the mean GNP and total population of nations which are considered US territory",
"pred": "SELECT AVG(gnp), SUM(population) FROM country WHERE countrycode = 'USA'",
"gold": "SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = \"US Territory\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 732,
"db_id": "world_1",
"question": "How many unique languages are spoken in the world",
"pred": "SELECT COUNT(DISTINCT language) FROM countrylanguage",
"gold": "SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage",
"em_norm": 1,
"ex": 1
},
{
"idx": 733,
"db_id": "world_1",
"question": "What is the number of distinct languages used around the world",
"pred": "SELECT COUNT(DISTINCT language) FROM countrylanguage",
"gold": "SELECT COUNT(DISTINCT LANGUAGE) FROM countrylanguage",
"em_norm": 1,
"ex": 1
},
{
"idx": 734,
"db_id": "world_1",
"question": "How many type of governments are in Africa",
"pred": "SELECT COUNT(DISTINCT governmentform) FROM country WHERE continent = 'Africa'",
"gold": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 735,
"db_id": "world_1",
"question": "How many different forms of governments are there in Africa",
"pred": "SELECT COUNT(DISTINCT governmentform) FROM country WHERE continent = \"Africa\"",
"gold": "SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 736,
"db_id": "world_1",
"question": "What is the total number of languages used in Aruba",
"pred": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T1.name = 'Aruba'",
"gold": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 737,
"db_id": "world_1",
"question": "How many languages are spoken in Aruba",
"pred": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T1.name = 'Aruba'",
"gold": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 738,
"db_id": "world_1",
"question": "How many official languages does Afghanistan have",
"pred": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T1.region = \"Afghanistan\"",
"gold": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 739,
"db_id": "world_1",
"question": "How many official languages are spoken in Afghanistan",
"pred": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T1.region = \"Afghanistan\"",
"gold": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 740,
"db_id": "world_1",
"question": "What is name of the country that speaks the largest number of languages",
"pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 741,
"db_id": "world_1",
"question": "Give the name of the nation that uses the greatest amount of languages",
"pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code GROUP BY T1.countrycode ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 742,
"db_id": "world_1",
"question": "Which continent has the most diverse languages",
"pred": "SELECT continent FROM country GROUP BY continent ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 743,
"db_id": "world_1",
"question": "Which continent speaks the most languages",
"pred": "SELECT continent FROM country GROUP BY continent ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 744,
"db_id": "world_1",
"question": "How many countries speak both English and Dutch",
"pred": "SELECT COUNT(*) FROM countrylanguage WHERE language = 'english' INTERSECT SELECT COUNT(*) FROM countrylanguage WHERE language = 'Dutch'",
"gold": "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\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 745,
"db_id": "world_1",
"question": "What is the number of nations that use English and Dutch",
"pred": "SELECT COUNT(*) FROM countrylanguage WHERE language = 'english' INTERSECT SELECT COUNT(*) FROM countrylanguage WHERE language = 'Dutch'",
"gold": "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\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 746,
"db_id": "world_1",
"question": "What are the names of nations speak both English and French",
"pred": "SELECT name FROM countrylanguage WHERE language = 'english' INTERSECT SELECT name FROM countrylanguage WHERE language = 'french'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 747,
"db_id": "world_1",
"question": "Give the names of nations that speak both English and French",
"pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'english' INTERSECT SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T2.language = 'french'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 748,
"db_id": "world_1",
"question": "What are the names of nations where both English and French are official languages",
"pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'english' INTERSECT SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T2.language = 'french'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 749,
"db_id": "world_1",
"question": "Give the names of countries with English and French as official languages",
"pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'english' INTERSECT SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T2.language = 'french'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 750,
"db_id": "world_1",
"question": "What is the number of distinct continents where Chinese is spoken",
"pred": "SELECT COUNT(DISTINCT continent) FROM country WHERE language = 'Chinese'",
"gold": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 751,
"db_id": "world_1",
"question": "How many continents speak Chinese",
"pred": "SELECT COUNT(DISTINCT continent) FROM country WHERE language = 'Chinese'",
"gold": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 752,
"db_id": "world_1",
"question": "What are the regions that use English or Dutch",
"pred": "SELECT region FROM country WHERE language = \"english\" OR language = \"Dutch\"",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 753,
"db_id": "world_1",
"question": "Which regions speak Dutch or English",
"pred": "SELECT region FROM country WHERE language = 'Dutch' OR language = 'english'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 754,
"db_id": "world_1",
"question": "What are the countries where either English or Dutch is the official language",
"pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'English' OR T2.language = 'Dutch'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 755,
"db_id": "world_1",
"question": "Which countries have either English or Dutch as an official language",
"pred": "SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'english' OR T2.language = 'Dutch'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 756,
"db_id": "world_1",
"question": "Which language is the most popular on the Asian continent",
"pred": "SELECT language FROM country WHERE continent = 'Asian' GROUP BY language ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 757,
"db_id": "world_1",
"question": "What is the language that is used by the largest number of Asian nations",
"pred": "SELECT language FROM countrylanguage WHERE region = \"Asian\" GROUP BY language ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 758,
"db_id": "world_1",
"question": "Which languages are spoken by only one country in republic governments",
"pred": "SELECT countrylanguage FROM country WHERE governmentform = 'Republic' GROUP BY countrylanguage HAVING COUNT(*) = 1",
"gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 759,
"db_id": "world_1",
"question": "What languages are only used by a single country with a republic government",
"pred": "SELECT countrylanguage FROM country WHERE governmentform = 'Republic' GROUP BY countrylanguage HAVING COUNT(*) = 1",
"gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 760,
"db_id": "world_1",
"question": "Find the city with the largest population that uses English",
"pred": "SELECT name FROM city WHERE language = 'english' ORDER BY population DESC LIMIT 1",
"gold": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 761,
"db_id": "world_1",
"question": "What is the most populace city that speaks English",
"pred": "SELECT name FROM city WHERE language = \"english\" GROUP BY name ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 762,
"db_id": "world_1",
"question": "Find the name, population and expected life length of asian country with the largest area",
"pred": "SELECT name, population, lifeexpectancy FROM country WHERE region = \"Asian\" ORDER BY surfacearea DESC LIMIT 1",
"gold": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 763,
"db_id": "world_1",
"question": "What are the name, population, and life expectancy of the largest Asian country by land",
"pred": "SELECT name, population, lifeexpectancy FROM country WHERE region = 'Asian' ORDER BY surfacearea DESC LIMIT 1",
"gold": "SELECT Name, Population, LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 764,
"db_id": "world_1",
"question": "What is average life expectancy in the countries where English is not the official language",
"pred": "SELECT AVG(lifeexpectancy) FROM country WHERE language > 'english'",
"gold": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name 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\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 765,
"db_id": "world_1",
"question": "Give the mean life expectancy of countries in which English is not the official language",
"pred": "SELECT AVG(lifeexpectancy) FROM country WHERE language > 'english'",
"gold": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name 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\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 766,
"db_id": "world_1",
"question": "What is the total number of people living in the nations that do not use English",
"pred": "SELECT SUM(population) FROM country WHERE language > 'english'",
"gold": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 767,
"db_id": "world_1",
"question": "How many people live in countries that do not speak English",
"pred": "SELECT COUNT(population) FROM country WHERE language > 'english'",
"gold": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 768,
"db_id": "world_1",
"question": "What is the official language spoken in the country whose head of state is Beatrix",
"pred": "SELECT T1.language FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.headofstate = 'Beatrix'",
"gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 769,
"db_id": "world_1",
"question": "What is the official language used in the country the name of whose head of state is Beatrix",
"pred": "SELECT T1.language FROM countrylanguage AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.headofstate = 'Beatrix'",
"gold": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 770,
"db_id": "world_1",
"question": "What is the total number of unique official languages spoken in the countries that are founded before 1930",
"pred": "SELECT COUNT(DISTINCT T1.isofficial) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T1.indepyear 1930",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 771,
"db_id": "world_1",
"question": "For the countries founded before 1930, what is the total number of distinct official languages",
"pred": "SELECT COUNT(DISTINCT language) FROM countrycode WHERE indepyear 1930",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 772,
"db_id": "world_1",
"question": "What are the countries that have greater surface area than any country in Europe",
"pred": "SELECT name FROM country WHERE surfacearea > (SELECT MAX(surfacearea) FROM country WHERE continent = 'Europe')",
"gold": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = \"Europe\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 773,
"db_id": "world_1",
"question": "Which countries have greater area than that of any country in Europe",
"pred": "SELECT name FROM country WHERE surfacearea > (SELECT MAX(surfacearea) FROM country WHERE region = 'Europe')",
"gold": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = \"Europe\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 774,
"db_id": "world_1",
"question": "What are the African countries that have a population less than any country in Asia",
"pred": "SELECT name FROM country WHERE region = \"Asia\" AND population (SELECT MAX(population) FROM country WHERE region = \"Africa\")",
"gold": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT MAX(population) FROM country WHERE Continent = \"Asia\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 775,
"db_id": "world_1",
"question": "Which African countries have a smaller population than that of any country in Asia",
"pred": "SELECT name FROM country WHERE region = 'Asia' AND population (SELECT MAX(population) FROM country WHERE region = 'Africa')",
"gold": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT MIN(population) FROM country WHERE Continent = \"Asia\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 776,
"db_id": "world_1",
"question": "Which Asian countries have a population that is larger than any country in Africa",
"pred": "SELECT name FROM country WHERE region = \"Asia\" AND population > (SELECT MAX(population) FROM country WHERE continent = \"Africa\")",
"gold": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MAX(population) FROM country WHERE Continent = \"Africa\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 777,
"db_id": "world_1",
"question": "What are the Asian countries which have a population larger than that of any country in Africa",
"pred": "SELECT name FROM country WHERE region = \"Asia\" AND population > (SELECT MAX(population) FROM country WHERE continent = \"Africa\")",
"gold": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MIN(population) FROM country WHERE Continent = \"Africa\")",
"em_norm": 0,
"ex": 0
},
{
"idx": 778,
"db_id": "world_1",
"question": "What are the country codes for countries that do not speak English",
"pred": "SELECT countrycode FROM country WHERE language > 'english'",
"gold": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 779,
"db_id": "world_1",
"question": "Return the country codes for countries that do not speak English",
"pred": "SELECT countrycode FROM country WHERE language > 'english'",
"gold": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 780,
"db_id": "world_1",
"question": "What are the country codes of countries where people use languages other than English",
"pred": "SELECT countrycode FROM country WHERE language > 'english'",
"gold": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> \"English\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 781,
"db_id": "world_1",
"question": "Give the country codes for countries in which people speak langauges that are not English",
"pred": "SELECT countrycode FROM countrylanguage WHERE language > 'english'",
"gold": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE <> \"English\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 782,
"db_id": "world_1",
"question": "What are the codes of the countries that do not speak English and whose government forms are not Republic",
"pred": "SELECT countrycode FROM country WHERE language > 'english' AND governmentform > 'Republic'",
"gold": "SELECT Code FROM country WHERE GovernmentForm <> \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 783,
"db_id": "world_1",
"question": "Return the codes of countries that do not speak English and do not have Republics for governments",
"pred": "SELECT countrycode FROM country WHERE language > 'english' EXCEPT SELECT countrycode FROM country WHERE governmentform = 'Republic'",
"gold": "SELECT Code FROM country WHERE GovernmentForm <> \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 784,
"db_id": "world_1",
"question": "Which cities are in European countries where English is not the official language",
"pred": "SELECT T1.name FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'European' EXCEPT SELECT T1.name FROM city AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.countrycode WHERE T2.language = 'english'",
"gold": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name 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')",
"em_norm": 0,
"ex": 0
},
{
"idx": 785,
"db_id": "world_1",
"question": "What are the names of cities in Europe for which English is not the official language",
"pred": "SELECT DISTINCT T1.localname FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.name = 'Europe' AND T2.language > 'english'",
"gold": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name 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')",
"em_norm": 0,
"ex": 0
},
{
"idx": 786,
"db_id": "world_1",
"question": "Which unique cities are in Asian countries where Chinese is the official language",
"pred": "SELECT DISTINCT T1.name FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code JOIN countrylanguage AS T3 ON T2.countrycode = T3.countrycode WHERE T3.language = 'Chinese'",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 787,
"db_id": "world_1",
"question": "Return the different names of cities that are in Asia and for which Chinese is the official language",
"pred": "SELECT DISTINCT T1.localname FROM city AS T1 JOIN country AS T2 ON T1.countrycode = T2.code WHERE T2.region = \"Asia\" AND T2.language = \"Chinese\"",
"gold": "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\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 788,
"db_id": "world_1",
"question": "What are the name, independence year, and surface area of the country with the smallest population",
"pred": "SELECT name, indepyear, surfacearea FROM country ORDER BY population ASC LIMIT 1",
"gold": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 789,
"db_id": "world_1",
"question": "Give the name, year of independence, and surface area of the country that has the lowest population",
"pred": "SELECT name, indepyear, surfacearea FROM country ORDER BY population LIMIT 1",
"gold": "SELECT Name, SurfaceArea, IndepYear FROM country ORDER BY Population LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 790,
"db_id": "world_1",
"question": "What are the population, name and leader of the country with the largest area",
"pred": "SELECT population, name, headofstate FROM country ORDER BY surfacearea DESC LIMIT 1",
"gold": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 791,
"db_id": "world_1",
"question": "Give the name, population, and head of state for the country that has the largest area",
"pred": "SELECT name, population, headofstate FROM country ORDER BY surfacearea DESC LIMIT 1",
"gold": "SELECT Name, population, HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 792,
"db_id": "world_1",
"question": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages",
"pred": "SELECT T1.name, COUNT(*), T1.countrycode FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code GROUP BY T1.countrycode HAVING COUNT(*) >= 3",
"gold": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 793,
"db_id": "world_1",
"question": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak",
"pred": "SELECT T1.name, COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code GROUP BY T1.countrycode HAVING COUNT(*) > 2",
"gold": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2",
"em_norm": 0,
"ex": 0
},
{
"idx": 794,
"db_id": "world_1",
"question": "Find the number of cities in each district whose population is greater than the average population of cities",
"pred": "SELECT COUNT(*), district FROM city WHERE population > (SELECT AVG(population) FROM city)",
"gold": "SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District",
"em_norm": 0,
"ex": 0
},
{
"idx": 795,
"db_id": "world_1",
"question": "How many cities in each district have a population that is above the average population across all cities",
"pred": "SELECT COUNT(*), district FROM city WHERE population > (SELECT AVG(population) FROM city)",
"gold": "SELECT COUNT(*), District FROM city WHERE Population > (SELECT AVG(Population) FROM city) GROUP BY District",
"em_norm": 0,
"ex": 0
},
{
"idx": 796,
"db_id": "world_1",
"question": "Find the government form name and total population for each government form whose average life expectancy is longer than 72",
"pred": "SELECT governmentform, SUM(population) FROM country WHERE lifeexpectancy > 72 GROUP BY governmentform",
"gold": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72",
"em_norm": 0,
"ex": 0
},
{
"idx": 797,
"db_id": "world_1",
"question": "What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72",
"pred": "SELECT governmentform, SUM(population) FROM country WHERE lifeexpectancy > 72 GROUP BY governmentform",
"gold": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72",
"em_norm": 0,
"ex": 0
},
{
"idx": 798,
"db_id": "world_1",
"question": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72",
"pred": "SELECT AVG(lifeexpectancy), SUM(population) FROM country WHERE lifeexpectancy 72 GROUP BY continent",
"gold": "SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72",
"em_norm": 0,
"ex": 0
},
{
"idx": 799,
"db_id": "world_1",
"question": "What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72",
"pred": "SELECT continent, AVG(lifeexpectancy), SUM(population) FROM country GROUP BY continent HAVING AVG(lifeexpectancy) 72",
"gold": "SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72",
"em_norm": 0,
"ex": 0
},
{
"idx": 800,
"db_id": "world_1",
"question": "What are the names and areas of countries with the top 5 largest area",
"pred": "SELECT name, area FROM country ORDER BY surfacearea DESC LIMIT 5",
"gold": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5",
"em_norm": 0,
"ex": 0
},
{
"idx": 801,
"db_id": "world_1",
"question": "Return the names and surface areas of the 5 largest countries",
"pred": "SELECT name, surfacearea FROM country ORDER BY population DESC LIMIT 5",
"gold": "SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5",
"em_norm": 0,
"ex": 0
},
{
"idx": 802,
"db_id": "world_1",
"question": "What are names of countries with the top 3 largest population",
"pred": "SELECT name FROM country ORDER BY population DESC LIMIT 3",
"gold": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3",
"em_norm": 1,
"ex": 1
},
{
"idx": 803,
"db_id": "world_1",
"question": "Return the names of the 3 most populated countries",
"pred": "SELECT name FROM country ORDER BY population DESC LIMIT 3",
"gold": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3",
"em_norm": 1,
"ex": 1
},
{
"idx": 804,
"db_id": "world_1",
"question": "What are the names of the nations with the 3 lowest populations",
"pred": "SELECT name FROM country ORDER BY population ASC LIMIT 3",
"gold": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3",
"em_norm": 1,
"ex": 1
},
{
"idx": 805,
"db_id": "world_1",
"question": "Return the names of the 3 countries with the fewest people",
"pred": "SELECT name FROM country ORDER BY population ASC LIMIT 3",
"gold": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3",
"em_norm": 1,
"ex": 1
},
{
"idx": 806,
"db_id": "world_1",
"question": "how many countries are in Asia",
"pred": "SELECT COUNT(*) FROM country WHERE region = 'Asia'",
"gold": "SELECT COUNT(*) FROM country WHERE continent = \"Asia\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 807,
"db_id": "world_1",
"question": "Count the number of countries in Asia",
"pred": "SELECT COUNT(*) FROM country WHERE region = 'Asie'",
"gold": "SELECT COUNT(*) FROM country WHERE continent = \"Asia\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 808,
"db_id": "world_1",
"question": "What are the names of the countries that are in the continent of Europe and have a population of 80000",
"pred": "SELECT name FROM country WHERE continent = 'Europe' AND population = 80000",
"gold": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 809,
"db_id": "world_1",
"question": "Give the names of countries that are in Europe and have a population equal to 80000",
"pred": "SELECT name FROM country WHERE continent = 'Europe' AND population = 80000",
"gold": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 810,
"db_id": "world_1",
"question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000",
"pred": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = 'North America' AND surfacearea > 3000",
"gold": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = \"north america\" AND surfacearea > 3000",
"em_norm": 1,
"ex": 0
},
{
"idx": 811,
"db_id": "world_1",
"question": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000",
"pred": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE region = 'North America' AND surfacearea > 3000",
"gold": "SELECT SUM(population), AVG(surfacearea) FROM country WHERE continent = \"north america\" AND surfacearea > 3000",
"em_norm": 0,
"ex": 0
},
{
"idx": 812,
"db_id": "world_1",
"question": "What are the cities whose population is between 160000 and 900000",
"pred": "SELECT name FROM city WHERE population BETWEEN 160000 AND 900000",
"gold": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000",
"em_norm": 1,
"ex": 1
},
{
"idx": 813,
"db_id": "world_1",
"question": "Return the names of cities that have a population between 160000 and 900000",
"pred": "SELECT name FROM city WHERE population BETWEEN 160000 AND 900000",
"gold": "SELECT name FROM city WHERE population BETWEEN 160000 AND 900000",
"em_norm": 1,
"ex": 1
},
{
"idx": 814,
"db_id": "world_1",
"question": "Which language is spoken by the largest number of countries",
"pred": "SELECT language FROM countrylanguage GROUP BY language ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 815,
"db_id": "world_1",
"question": "Give the language that is spoken in the most countries",
"pred": "SELECT language FROM countrylanguage GROUP BY language ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 816,
"db_id": "world_1",
"question": "What is the language spoken by the largest percentage of people in each country",
"pred": "SELECT countrylanguage, MAX(Percentage) FROM country AS T1 JOIN countryAS T2 ON T1.countrycode = T2.code GROUP BY countrycode",
"gold": "SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode",
"em_norm": 0,
"ex": 0
},
{
"idx": 817,
"db_id": "world_1",
"question": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each",
"pred": "SELECT countrycode, T1.language, MAX(T1.population) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code GROUP BY T1.countrycode",
"gold": "SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode",
"em_norm": 0,
"ex": 0
},
{
"idx": 818,
"db_id": "world_1",
"question": "What is the total number of countries where Spanish is spoken by the largest percentage of people",
"pred": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'Spanish' ORDER BY percentage DESC LIMIT 1",
"gold": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode",
"em_norm": 0,
"ex": 0
},
{
"idx": 819,
"db_id": "world_1",
"question": "Count the number of countries for which Spanish is the predominantly spoken language",
"pred": "SELECT COUNT(*) FROM country WHERE language = 'Spanish'",
"gold": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode",
"em_norm": 0,
"ex": 0
},
{
"idx": 820,
"db_id": "world_1",
"question": "What are the codes of countries where Spanish is spoken by the largest percentage of people",
"pred": "SELECT T1.countrycode FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'Spanish' ORDER BY T1.population DESC LIMIT 1",
"gold": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode",
"em_norm": 0,
"ex": 0
},
{
"idx": 821,
"db_id": "world_1",
"question": "Return the codes of countries for which Spanish is the predominantly spoken language",
"pred": "SELECT T1.countrycode FROM country AS T1 JOIN countrylanguage AS T2 ON T1.countrycode = T2.code WHERE T2.language = 'Spanish'",
"gold": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode",
"em_norm": 0,
"ex": 0
},
{
"idx": 822,
"db_id": "orchestra",
"question": "How many conductors are there",
"pred": "SELECT COUNT(*) FROM conductor",
"gold": "SELECT COUNT(*) FROM conductor",
"em_norm": 1,
"ex": 1
},
{
"idx": 823,
"db_id": "orchestra",
"question": "Count the number of conductors",
"pred": "SELECT COUNT(*) FROM conductor",
"gold": "SELECT COUNT(*) FROM conductor",
"em_norm": 1,
"ex": 1
},
{
"idx": 824,
"db_id": "orchestra",
"question": "List the names of conductors in ascending order of age",
"pred": "SELECT Name FROM conductor ORDER BY Age ASC",
"gold": "SELECT Name FROM conductor ORDER BY Age ASC",
"em_norm": 1,
"ex": 1
},
{
"idx": 825,
"db_id": "orchestra",
"question": "What are the names of conductors, ordered by age",
"pred": "SELECT Name FROM conductor ORDER BY Age",
"gold": "SELECT Name FROM conductor ORDER BY Age ASC",
"em_norm": 0,
"ex": 1
},
{
"idx": 826,
"db_id": "orchestra",
"question": "What are the names of conductors whose nationalities are not \"USA\"",
"pred": "SELECT Name FROM conductor WHERE Nationality > \"USA\"",
"gold": "SELECT Name FROM conductor WHERE Nationality <> 'USA'",
"em_norm": 0,
"ex": 0
},
{
"idx": 827,
"db_id": "orchestra",
"question": "Return the names of conductors that do not have the nationality \"USA\"",
"pred": "SELECT Name FROM conductor WHERE Nationality > \"USA\"",
"gold": "SELECT Name FROM conductor WHERE Nationality <> 'USA'",
"em_norm": 0,
"ex": 0
},
{
"idx": 828,
"db_id": "orchestra",
"question": "What are the record companies of orchestras in descending order of years in which they were founded",
"pred": "SELECT record_company FROM orchestra ORDER BY YEAR_of_founded DESC",
"gold": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 829,
"db_id": "orchestra",
"question": "Return the record companies of orchestras, sorted descending by the years in which they were founded",
"pred": "SELECT record_company FROM orchestra ORDER BY YEAR_of_founded DESC",
"gold": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 830,
"db_id": "orchestra",
"question": "What is the average attendance of shows",
"pred": "SELECT AVG(Attendance) FROM show",
"gold": "SELECT AVG(Attendance) FROM SHOW",
"em_norm": 1,
"ex": 1
},
{
"idx": 831,
"db_id": "orchestra",
"question": "Return the average attendance across all shows",
"pred": "SELECT AVG(Attendance) FROM show",
"gold": "SELECT AVG(Attendance) FROM SHOW",
"em_norm": 1,
"ex": 1
},
{
"idx": 832,
"db_id": "orchestra",
"question": "What are the maximum and minimum share of performances whose type is not \"Live final\"",
"pred": "SELECT MAX(Share), MIN(Share) FROM performance WHERE TYPE > \"Live final\"",
"gold": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> \"Live final\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 833,
"db_id": "orchestra",
"question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\"",
"pred": "SELECT MAX(Share), MIN(Share) FROM performance WHERE NOT Performance_ID IN (SELECT Performance_ID FROM show WHERE Type > \"Live final\")",
"gold": "SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> \"Live final\"",
"em_norm": 0,
"ex": 1
},
{
"idx": 834,
"db_id": "orchestra",
"question": "How many different nationalities do conductors have",
"pred": "SELECT COUNT(DISTINCT Nationality) FROM conductor",
"gold": "SELECT COUNT(DISTINCT Nationality) FROM conductor",
"em_norm": 1,
"ex": 1
},
{
"idx": 835,
"db_id": "orchestra",
"question": "Count the number of different nationalities of conductors",
"pred": "SELECT COUNT(DISTINCT Nationality) FROM conductor",
"gold": "SELECT COUNT(DISTINCT Nationality) FROM conductor",
"em_norm": 1,
"ex": 1
},
{
"idx": 836,
"db_id": "orchestra",
"question": "List names of conductors in descending order of years of work",
"pred": "SELECT Name FROM conductor ORDER BY Year_of_work DESC",
"gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 837,
"db_id": "orchestra",
"question": "What are the names of conductors, sorted descending by the number of years they have worked",
"pred": "SELECT Name FROM conductor ORDER BY Year_of_work DESC",
"gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC",
"em_norm": 1,
"ex": 1
},
{
"idx": 838,
"db_id": "orchestra",
"question": "List the name of the conductor with the most years of work",
"pred": "SELECT name FROM conductor ORDER BY YEAR_of_work DESC LIMIT 1",
"gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 839,
"db_id": "orchestra",
"question": "What is the name of the conductor who has worked the greatest number of years",
"pred": "SELECT T2.name FROM orchestra AS T1 JOIN conductor AS T2 ON T1.conductor_id = T2.conductor_id GROUP BY T2.conductor_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 840,
"db_id": "orchestra",
"question": "Show the names of conductors and the orchestras they have conducted",
"pred": "SELECT T3.Name, T2.Orchestra FROM performance AS T1 JOIN orchestra AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID JOIN conductor AS T3 ON T1.Conductor_ID = T3.Conductor_ID",
"gold": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID",
"em_norm": 0,
"ex": 0
},
{
"idx": 841,
"db_id": "orchestra",
"question": "What are the names of conductors as well as the corresonding orchestras that they have conducted",
"pred": "SELECT T3.Name, T2.Orchestra FROM performance AS T1 JOIN orchestra AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID JOIN conductor AS T3 ON T1.Conductor_ID = T3.Conductor_ID",
"gold": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID",
"em_norm": 0,
"ex": 0
},
{
"idx": 842,
"db_id": "orchestra",
"question": "Show the names of conductors that have conducted more than one orchestras",
"pred": "SELECT T1.name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.conductor_id = T2.conductor_id GROUP BY T1.conductor_id HAVING COUNT(*) > 1",
"gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 843,
"db_id": "orchestra",
"question": "What are the names of conductors who have conducted at more than one orchestra",
"pred": "SELECT T1.name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.conductor_id = T2.conductor_id GROUP BY T1.conductor_id HAVING COUNT(*) > 1",
"gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 844,
"db_id": "orchestra",
"question": "Show the name of the conductor that has conducted the most number of orchestras",
"pred": "SELECT T2.name FROM performance AS T1 JOIN conductor AS T2 ON T1.conductor_id = T2.conductor_id GROUP BY T2.conductor_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 845,
"db_id": "orchestra",
"question": "What is the name of the conductor who has conducted the most orchestras",
"pred": "SELECT T2.name FROM orchestra AS T1 JOIN conductor AS T2 ON T1.conductor_id = T2.conductor_id GROUP BY T2.conductor_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 846,
"db_id": "orchestra",
"question": "Please show the name of the conductor that has conducted orchestras founded after 2008",
"pred": "SELECT T2.name FROM orchestra AS T1 JOIN conductor AS T2 ON T1.conductor_id = T2.conductor_id WHERE T1.year_of_founded > 2008",
"gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008",
"em_norm": 0,
"ex": 1
},
{
"idx": 847,
"db_id": "orchestra",
"question": "What are the names of conductors who have conducted orchestras founded after the year 2008",
"pred": "SELECT T2.name FROM orchestra AS T1 JOIN conductor AS T2 ON T1.conductor_id = T2.conductor_id WHERE T1.year_of_founded > 2008",
"gold": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008",
"em_norm": 0,
"ex": 1
},
{
"idx": 848,
"db_id": "orchestra",
"question": "Please show the different record companies and the corresponding number of orchestras",
"pred": "SELECT record_company, COUNT(*) FROM orchestra GROUP BY record_company",
"gold": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company",
"em_norm": 1,
"ex": 1
},
{
"idx": 849,
"db_id": "orchestra",
"question": "How many orchestras does each record company manage",
"pred": "SELECT COUNT(*), record_company FROM orchestra GROUP BY record_company",
"gold": "SELECT Record_Company, COUNT(*) FROM orchestra GROUP BY Record_Company",
"em_norm": 0,
"ex": 0
},
{
"idx": 850,
"db_id": "orchestra",
"question": "Please show the record formats of orchestras in ascending order of count",
"pred": "SELECT Major_Record_Format FROM orchestra ORDER BY COUNT(*) ASC",
"gold": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC",
"em_norm": 0,
"ex": 0
},
{
"idx": 851,
"db_id": "orchestra",
"question": "What are the major record formats of orchestras, sorted by their frequency",
"pred": "SELECT Major_Record_format FROM orchestra ORDER BY Major_Record_format",
"gold": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC",
"em_norm": 0,
"ex": 0
},
{
"idx": 852,
"db_id": "orchestra",
"question": "List the record company shared by the most number of orchestras",
"pred": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 853,
"db_id": "orchestra",
"question": "What is the record company used by the greatest number of orchestras",
"pred": "SELECT record_company FROM orchestra GROUP BY record_company ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 854,
"db_id": "orchestra",
"question": "List the names of orchestras that have no performance",
"pred": "SELECT Name FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)",
"gold": "SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)",
"em_norm": 0,
"ex": 0
},
{
"idx": 855,
"db_id": "orchestra",
"question": "What are the orchestras that do not have any performances",
"pred": "SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)",
"gold": "SELECT Orchestra FROM orchestra WHERE NOT Orchestra_ID IN (SELECT Orchestra_ID FROM performance)",
"em_norm": 1,
"ex": 1
},
{
"idx": 856,
"db_id": "orchestra",
"question": "Show the record companies shared by orchestras founded before 2003 and after 2003",
"pred": "SELECT Record_Company FROM orchestra WHERE YEAR_of_founded 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE YEAR_of_founded > 2003",
"gold": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003",
"em_norm": 0,
"ex": 0
},
{
"idx": 857,
"db_id": "orchestra",
"question": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003",
"pred": "SELECT record_company FROM orchestra WHERE YEAR_of_founded 2003 INTERSECT SELECT record_company FROM orchestra WHERE YEAR_of_founded > 2003",
"gold": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003",
"em_norm": 0,
"ex": 0
},
{
"idx": 858,
"db_id": "orchestra",
"question": "Find the number of orchestras whose record format is \"CD\" or \"DVD\"",
"pred": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"",
"gold": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 859,
"db_id": "orchestra",
"question": "Count the number of orchestras that have CD or DVD as their record format",
"pred": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"",
"gold": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 860,
"db_id": "orchestra",
"question": "Show the years in which orchestras that have given more than one performance are founded",
"pred": "SELECT T1.Year_of_founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T1.Orchestra_ID HAVING COUNT(*) > 1",
"gold": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 861,
"db_id": "orchestra",
"question": "What are years of founding for orchestras that have had more than a single performance",
"pred": "SELECT YEAR_of_founded FROM orchestra GROUP BY YEAR_of_founded HAVING COUNT(*) > 1",
"gold": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 862,
"db_id": "network_1",
"question": "How many high schoolers are there",
"pred": "SELECT COUNT(*) FROM highschooler",
"gold": "SELECT COUNT(*) FROM Highschooler",
"em_norm": 1,
"ex": 1
},
{
"idx": 863,
"db_id": "network_1",
"question": "Count the number of high schoolers",
"pred": "SELECT COUNT(*) FROM highschooler",
"gold": "SELECT COUNT(*) FROM Highschooler",
"em_norm": 1,
"ex": 1
},
{
"idx": 864,
"db_id": "network_1",
"question": "Show the names and grades of each high schooler",
"pred": "SELECT name, grade FROM highschooler",
"gold": "SELECT name, grade FROM Highschooler",
"em_norm": 1,
"ex": 1
},
{
"idx": 865,
"db_id": "network_1",
"question": "What are the names and grades for each high schooler",
"pred": "SELECT name, grade FROM highschooler",
"gold": "SELECT name, grade FROM Highschooler",
"em_norm": 1,
"ex": 1
},
{
"idx": 866,
"db_id": "network_1",
"question": "Show all the grades of the high schoolers",
"pred": "SELECT grade FROM highschooler",
"gold": "SELECT grade FROM Highschooler",
"em_norm": 1,
"ex": 1
},
{
"idx": 867,
"db_id": "network_1",
"question": "What is the grade of each high schooler",
"pred": "SELECT grade FROM highschooler",
"gold": "SELECT grade FROM Highschooler",
"em_norm": 1,
"ex": 1
},
{
"idx": 868,
"db_id": "network_1",
"question": "What grade is Kyle in",
"pred": "SELECT grading FROM highschooler WHERE name = 'Kyle'",
"gold": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 869,
"db_id": "network_1",
"question": "Return the grade for the high schooler named Kyle",
"pred": "SELECT grade FROM highschooler WHERE name = 'Kyle'",
"gold": "SELECT grade FROM Highschooler WHERE name = \"Kyle\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 870,
"db_id": "network_1",
"question": "Show the names of all high schoolers in grade 10",
"pred": "SELECT name FROM highschooler WHERE grade = 10",
"gold": "SELECT name FROM Highschooler WHERE grade = 10",
"em_norm": 1,
"ex": 1
},
{
"idx": 871,
"db_id": "network_1",
"question": "What are the names of all high schoolers in grade 10",
"pred": "SELECT name FROM highschooler WHERE grade = 10",
"gold": "SELECT name FROM Highschooler WHERE grade = 10",
"em_norm": 1,
"ex": 1
},
{
"idx": 872,
"db_id": "network_1",
"question": "Show the ID of the high schooler named Kyle",
"pred": "SELECT id FROM highschooler WHERE name = 'Kyle'",
"gold": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"",
"em_norm": 1,
"ex": 1
},
{
"idx": 873,
"db_id": "network_1",
"question": "What is Kyle's id",
"pred": "SELECT student_id FROM highschooler WHERE name = 'Kyle'",
"gold": "SELECT ID FROM Highschooler WHERE name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 874,
"db_id": "network_1",
"question": "How many high schoolers are there in grade 9 or 10",
"pred": "SELECT COUNT(*) FROM highschooler WHERE grade = 9 OR grade = 10",
"gold": "SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10",
"em_norm": 1,
"ex": 1
},
{
"idx": 875,
"db_id": "network_1",
"question": "Count the number of high schoolers in grades 9 or 10",
"pred": "SELECT COUNT(*) FROM highschooler WHERE grade = 9 OR grade = 10",
"gold": "SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10",
"em_norm": 1,
"ex": 1
},
{
"idx": 876,
"db_id": "network_1",
"question": "Show the number of high schoolers for each grade",
"pred": "SELECT grade, COUNT(*) FROM highschooler GROUP BY grade",
"gold": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade",
"em_norm": 1,
"ex": 1
},
{
"idx": 877,
"db_id": "network_1",
"question": "How many high schoolers are in each grade",
"pred": "SELECT grade, COUNT(*) FROM highschooler GROUP BY grade",
"gold": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade",
"em_norm": 1,
"ex": 1
},
{
"idx": 878,
"db_id": "network_1",
"question": "Which grade has the most high schoolers",
"pred": "SELECT grade FROM highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 879,
"db_id": "network_1",
"question": "Return the grade that has the greatest number of high schoolers",
"pred": "SELECT grade FROM highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 880,
"db_id": "network_1",
"question": "Show me all grades that have at least 4 students",
"pred": "SELECT grade FROM highschooler GROUP BY grade HAVING COUNT(*) >= 4",
"gold": "SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4",
"em_norm": 1,
"ex": 1
},
{
"idx": 881,
"db_id": "network_1",
"question": "Which grades have 4 or more high schoolers",
"pred": "SELECT grade FROM highschooler GROUP BY grade HAVING COUNT(*) >= 4",
"gold": "SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4",
"em_norm": 1,
"ex": 1
},
{
"idx": 882,
"db_id": "network_1",
"question": "Show the student IDs and numbers of friends corresponding to each",
"pred": "SELECT student_id, COUNT(*) FROM friend GROUP BY student_id",
"gold": "SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id",
"em_norm": 1,
"ex": 1
},
{
"idx": 883,
"db_id": "network_1",
"question": "How many friends does each student have",
"pred": "SELECT COUNT(*) FROM friend AS T1 JOIN student AS T2 ON T1.student_id = T2.id GROUP BY T2.student_id",
"gold": "SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 884,
"db_id": "network_1",
"question": "Show the names of high school students and their corresponding number of friends",
"pred": "SELECT T2.name, COUNT(*) FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id JOIN student AS T3 ON T1.student_id = T3.id GROUP BY T3.student_id",
"gold": "SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 885,
"db_id": "network_1",
"question": "What are the names of the high schoolers and how many friends does each have",
"pred": "SELECT COUNT(*), T1.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id GROUP BY T1.id",
"gold": "SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 886,
"db_id": "network_1",
"question": "What is the name of the high schooler who has the greatest number of friends",
"pred": "SELECT T1.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 887,
"db_id": "network_1",
"question": "Return the name of the high school student with the most friends",
"pred": "SELECT T1.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id GROUP BY T2.friend_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 888,
"db_id": "network_1",
"question": "Show the names of high schoolers who have at least 3 friends",
"pred": "SELECT T1.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id GROUP BY T2.friend_id HAVING COUNT(*) >= 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 889,
"db_id": "network_1",
"question": "What are the names of high schoolers who have 3 or more friends",
"pred": "SELECT T1.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id GROUP BY T2.friend_id HAVING COUNT(*) >= 3",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 890,
"db_id": "network_1",
"question": "Show the names of all of the high schooler Kyle's friends",
"pred": "SELECT T3.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id JOIN likes AS T3 ON T2.liked_id = T3.id JOIN student AS T4 ON T3.student_id = T4.id WHERE T1.name = 'Kyle'",
"gold": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 891,
"db_id": "network_1",
"question": "Return the names of friends of the high school student Kyle",
"pred": "SELECT T2.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id WHERE T1.id = \"Kyle\"",
"gold": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 892,
"db_id": "network_1",
"question": "How many friends does the high school student Kyle have",
"pred": "SELECT COUNT(*) FROM friend AS T1 JOIN student AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"",
"gold": "SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 893,
"db_id": "network_1",
"question": "Count the number of friends Kyle has",
"pred": "SELECT COUNT(*) FROM friend WHERE name = 'Kyle'",
"gold": "SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 894,
"db_id": "network_1",
"question": "Show ids of all students who do not have any friends",
"pred": "SELECT student_id FROM friend EXCEPT SELECT student_id FROM highschooler",
"gold": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend",
"em_norm": 0,
"ex": 0
},
{
"idx": 895,
"db_id": "network_1",
"question": "What are the ids of high school students who do not have friends",
"pred": "SELECT student_id FROM friend EXCEPT SELECT student_id FROM highschooler",
"gold": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend",
"em_norm": 0,
"ex": 0
},
{
"idx": 896,
"db_id": "network_1",
"question": "Show names of all high school students who do not have any friends",
"pred": "SELECT name FROM highschooler WHERE NOT student_id IN (SELECT student_id FROM friend)",
"gold": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id",
"em_norm": 0,
"ex": 0
},
{
"idx": 897,
"db_id": "network_1",
"question": "What are the names of students who have no friends",
"pred": "SELECT name FROM student WHERE NOT student_id IN (SELECT student_id FROM friend)",
"gold": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id",
"em_norm": 0,
"ex": 0
},
{
"idx": 898,
"db_id": "network_1",
"question": "Show the ids of high schoolers who have friends and are also liked by someone else",
"pred": "SELECT T1.id FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id INTERSECT SELECT T1.id FROM highschooler AS T1 JOIN likes AS T2 ON T1.id = T2.liked_id",
"gold": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes",
"em_norm": 0,
"ex": 1
},
{
"idx": 899,
"db_id": "network_1",
"question": "What are the ids of students who both have friends and are liked",
"pred": "SELECT T1.id FROM student AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id INTERSECT SELECT T1.id FROM student AS T1 JOIN likes AS T2 ON T1.id = T2.liked_id",
"gold": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes",
"em_norm": 0,
"ex": 0
},
{
"idx": 900,
"db_id": "network_1",
"question": "Show name of all students who have some friends and also are liked by someone else",
"pred": "SELECT T1.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id JOIN likes AS T3 ON T2.liked_id = T3.id",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 901,
"db_id": "network_1",
"question": "What are the names of high schoolers who both have friends and are liked",
"pred": "SELECT T1.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id INTERSECT SELECT T1.name FROM highschooler AS T1 JOIN likes AS T2 ON T1.id = T2.liked_id",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 902,
"db_id": "network_1",
"question": "Count the number of likes for each student id",
"pred": "SELECT COUNT(*), student_id FROM likes GROUP BY student_id",
"gold": "SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 903,
"db_id": "network_1",
"question": "How many likes correspond to each student id",
"pred": "SELECT student_id, COUNT(*) FROM likes GROUP BY student_id",
"gold": "SELECT student_id, COUNT(*) FROM Likes GROUP BY student_id",
"em_norm": 1,
"ex": 1
},
{
"idx": 904,
"db_id": "network_1",
"question": "Show the names of high schoolers who have likes, and numbers of likes for each",
"pred": "SELECT T1.name, COUNT(*) FROM highschooler AS T1 JOIN likes AS T2 ON T1.id = T2.liked_id GROUP BY T1.id",
"gold": "SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 905,
"db_id": "network_1",
"question": "What are the names of high schoolers who have likes, and how many likes does each have",
"pred": "SELECT T1.name, COUNT(*) FROM highschooler AS T1 JOIN likes AS T2 ON T1.id = T2.liked_id GROUP BY T1.id",
"gold": "SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 906,
"db_id": "network_1",
"question": "What is the name of the high schooler who has the greatest number of likes",
"pred": "SELECT T1.name FROM highschooler AS T1 JOIN likes AS T2 ON T1.id = T2.liked_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 907,
"db_id": "network_1",
"question": "Give the name of the student with the most likes",
"pred": "SELECT T2.name FROM likes AS T1 JOIN student AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 908,
"db_id": "network_1",
"question": "Show the names of students who have at least 2 likes",
"pred": "SELECT T2.name FROM likes AS T1 JOIN student AS T2 ON T1.student_id = T2.id GROUP BY T2.student_id HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 909,
"db_id": "network_1",
"question": "What are the names of students who have 2 or more likes",
"pred": "SELECT T2.name FROM likes AS T1 JOIN student AS T2 ON T1.student_id = T2.id GROUP BY T2.student_id HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 910,
"db_id": "network_1",
"question": "Show the names of students who have a grade higher than 5 and have at least 2 friends",
"pred": "SELECT T2.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id JOIN student AS T3 ON T1.id = T3.student_id WHERE T1.grade > 5 GROUP BY T3.id HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 911,
"db_id": "network_1",
"question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends",
"pred": "SELECT T2.name FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id WHERE T1.grade > 5 GROUP BY T2.name HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 912,
"db_id": "network_1",
"question": "How many likes does Kyle have",
"pred": "SELECT COUNT(*) FROM likes AS T1 JOIN student AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"",
"gold": "SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 913,
"db_id": "network_1",
"question": "Return the number of likes that the high schooler named Kyle has",
"pred": "SELECT COUNT(*) FROM likes AS T1 JOIN highschooler AS T2 ON T1.id = T2.highschooler_id WHERE T2.name = \"Kyle\"",
"gold": "SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 914,
"db_id": "network_1",
"question": "Find the average grade of all students who have some friends",
"pred": "SELECT AVG(T2.grade) FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 915,
"db_id": "network_1",
"question": "What is the average grade of students who have friends",
"pred": "SELECT AVG(T2.grade) FROM highschooler AS T1 JOIN friend AS T2 ON T1.id = T2.friend_id",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 916,
"db_id": "network_1",
"question": "Find the minimum grade of students who have no friends",
"pred": "SELECT MIN(grade) FROM highschooler WHERE NOT student_id IN (SELECT student_id FROM friend)",
"gold": "SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)",
"em_norm": 0,
"ex": 0
},
{
"idx": 917,
"db_id": "network_1",
"question": "What is the lowest grade of students who do not have any friends",
"pred": "SELECT MIN(grade) FROM student WHERE NOT student_id IN (SELECT student_id FROM friend)",
"gold": "SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)",
"em_norm": 0,
"ex": 0
},
{
"idx": 918,
"db_id": "dog_kennels",
"question": "Which states have both owners and professionals living there",
"pred": "SELECT state FROM professionals INTERSECT SELECT state FROM owners GROUP BY state",
"gold": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals",
"em_norm": 0,
"ex": 1
},
{
"idx": 919,
"db_id": "dog_kennels",
"question": "Find the states where both owners and professionals live",
"pred": "SELECT state FROM professionals INTERSECT SELECT state FROM owners",
"gold": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals",
"em_norm": 0,
"ex": 1
},
{
"idx": 920,
"db_id": "dog_kennels",
"question": "What is the average age of the dogs who have gone through any treatments",
"pred": "SELECT AVG(T2.age) FROM treatments AS T1 JOIN dogs AS T2 ON T1.dog_id = T2.dog_id",
"gold": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)",
"em_norm": 0,
"ex": 0
},
{
"idx": 921,
"db_id": "dog_kennels",
"question": "Find the average age of the dogs who went through treatments",
"pred": "SELECT AVG(T2.age) FROM treatments AS T1 JOIN dogs AS T2 ON T1.dog_id = T2.dog_id",
"gold": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)",
"em_norm": 0,
"ex": 0
},
{
"idx": 922,
"db_id": "dog_kennels",
"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",
"pred": "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 WHERE T1.state = \"Indiana\" GROUP BY T1.professional_id HAVING COUNT(*) > 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 923,
"db_id": "dog_kennels",
"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",
"pred": "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 WHERE T1.state = \"Indiana\" GROUP BY T1.professional_id HAVING COUNT(*) > 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 924,
"db_id": "dog_kennels",
"question": "Which dogs have not cost their owner more than 1000 for treatment ? List the dog names",
"pred": "SELECT name FROM dogs EXCEPT SELECT T1.name FROM dogs AS T1 JOIN treatments AS T2 ON T1.dog_id = T2.dog_id GROUP BY T1.name HAVING SUM(T2.cost_of_treatment) > 1000",
"gold": "SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000)",
"em_norm": 0,
"ex": 1
},
{
"idx": 925,
"db_id": "dog_kennels",
"question": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment",
"pred": "SELECT T2.name FROM owners AS T1 JOIN dogs AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id HAVING SUM(T1.cost_of_treatment) > 1000",
"gold": "SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000)",
"em_norm": 0,
"ex": 0
},
{
"idx": 926,
"db_id": "dog_kennels",
"question": "Which first names are used for professionals or owners but are not used as dog names",
"pred": "SELECT first_name FROM professionals UNION SELECT first_name FROM owners EXCEPT SELECT first_name FROM dogs",
"gold": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs",
"em_norm": 0,
"ex": 0
},
{
"idx": 927,
"db_id": "dog_kennels",
"question": "Find the first names that are used for professionals or owners but are not used as dog names",
"pred": "SELECT first_name FROM professionals UNION SELECT first_name FROM owners EXCEPT SELECT first_name FROM dogs",
"gold": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs",
"em_norm": 0,
"ex": 0
},
{
"idx": 928,
"db_id": "dog_kennels",
"question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email",
"pred": "SELECT professional_id, role_code, email_address FROM professionals WHERE NOT professional_id IN (SELECT professional_id FROM treatments)",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 929,
"db_id": "dog_kennels",
"question": "Give me the id, role and email of the professionals who did not perform any treatment on dogs",
"pred": "SELECT professional_id, role_code, email_address FROM professionals EXCEPT SELECT T1.professional_id, T1.role_code FROM professionals AS T1 JOIN treatments AS T2 ON T1.professional_id = T2.professional_id WHERE T2.dog_id = 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 930,
"db_id": "dog_kennels",
"question": "Which owner owns the most dogs? List the owner id, first name and last name",
"pred": "SELECT T1.owner_id, T2.first_name, T2.last_name FROM owners AS T1 JOIN dogs AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 931,
"db_id": "dog_kennels",
"question": "Return the owner id, first name and last name of the owner who has the most dogs",
"pred": "SELECT T1.owner_id, T2.first_name, T2.last_name FROM owners AS T1 JOIN dogs AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 932,
"db_id": "dog_kennels",
"question": "Which professionals have done at least two treatments? List the professional's id, role, and first name",
"pred": "SELECT T1.professional_id, T1.role_code, T2.first_name FROM treatments AS T1 JOIN professionals AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 933,
"db_id": "dog_kennels",
"question": "What are the id, role, and first name of the professionals who have performed two or more treatments",
"pred": "SELECT T1.professional_id, T1.role_code, T2.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",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 934,
"db_id": "dog_kennels",
"question": "What is the name of the breed with the most dogs",
"pred": "SELECT breed_name FROM breeds GROUP BY breed_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 935,
"db_id": "dog_kennels",
"question": "Which breed do the most dogs have? Give me the breed name",
"pred": "SELECT breed_name FROM dogs GROUP BY breed_code ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 936,
"db_id": "dog_kennels",
"question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name",
"pred": "SELECT T1.owner_id, T2.last_name FROM owners AS T1 JOIN treatments AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 937,
"db_id": "dog_kennels",
"question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs",
"pred": "SELECT T1.owner_id, T1.last_name FROM owners AS T1 JOIN treatments AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY SUM(T2.cost_of_treatment) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 938,
"db_id": "dog_kennels",
"question": "What is the description of the treatment type that costs the least money in total",
"pred": "SELECT T1.treatment_type_description FROM treatment_types AS T1 JOIN charges AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(T2.charge_amount) ASC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 939,
"db_id": "dog_kennels",
"question": "Give me the description of the treatment type whose total cost is the lowest",
"pred": "SELECT T1.treatment_type_description FROM treatment_types AS T1 JOIN charges AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(T2.cost_of_treatment) ASC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 940,
"db_id": "dog_kennels",
"question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code",
"pred": "SELECT T1.owner_id, T1.zip_code FROM owners AS T1 JOIN charges AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY SUM(T2.charge_amount) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 941,
"db_id": "dog_kennels",
"question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs",
"pred": "SELECT T1.owner_id, T1.zip_code FROM owners AS T1 JOIN charges AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY SUM(T2.charge_amount) DESC LIMIT 1",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 942,
"db_id": "dog_kennels",
"question": "Which professionals have done at least two types of treatments? List the professional id and cell phone",
"pred": "SELECT T1.professional_id, T2.cell_number FROM treatments AS T1 JOIN professionals AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2",
"gold": "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",
"em_norm": 0,
"ex": 1
},
{
"idx": 943,
"db_id": "dog_kennels",
"question": "Find the id and cell phone of the professionals who operate two or more types of treatments",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 944,
"db_id": "dog_kennels",
"question": "What are the first name and last name of the professionals who have done treatment with cost below average",
"pred": "SELECT T2.first_name, T2.last_name FROM treatments AS T1 JOIN professionals AS T2 ON T1.professional_id = T2.professional_id WHERE T1.cost_of_treatment (SELECT AVG(cost_of_treatment) FROM treatments)",
"gold": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 ON TRUE WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)",
"em_norm": 0,
"ex": 0
},
{
"idx": 945,
"db_id": "dog_kennels",
"question": "Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names",
"pred": "SELECT T1.first_name, T1.last_name FROM professionals AS T1 JOIN treatments AS T2 ON T1.professional_id = T2.professional_id WHERE T2.cost_of_treatment (SELECT AVG(cost_of_treatment) FROM treatments)",
"gold": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 ON TRUE WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)",
"em_norm": 0,
"ex": 0
},
{
"idx": 946,
"db_id": "dog_kennels",
"question": "List the date of each treatment, together with the first name of the professional who operated it",
"pred": "SELECT T1.date_of_treatment, T2.first_name FROM professionals AS T1 JOIN treatments AS T2 ON T1.professional_id = T2.professional_id",
"gold": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 947,
"db_id": "dog_kennels",
"question": "What are the date and the operating professional's first name of each treatment",
"pred": "SELECT date_of_treatment, first_name FROM professionals AS T1 JOIN treatments AS T2 ON T1.professional_id = T2.professional_id",
"gold": "SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id",
"em_norm": 0,
"ex": 1
},
{
"idx": 948,
"db_id": "dog_kennels",
"question": "List the cost of each treatment and the corresponding treatment type description",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 949,
"db_id": "dog_kennels",
"question": "What are the cost and treatment type description of each treatment",
"pred": "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",
"gold": "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",
"em_norm": 1,
"ex": 1
},
{
"idx": 950,
"db_id": "dog_kennels",
"question": "List each owner's first name, last name, and the size of his for her dog",
"pred": "SELECT T2.first_name, T2.last_name, T2.size_code FROM dogs AS T1 JOIN owners AS T2 ON T1.owner_id = T2.owner_id JOIN sizes AS T3 ON T1.size_code = T3.size_code",
"gold": "SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 951,
"db_id": "dog_kennels",
"question": "What are each owner's first name, last name, and the size of their dog",
"pred": "SELECT T2.first_name, T2.last_name, T3.size_code FROM dogs AS T1 JOIN owners AS T2 ON T1.owner_id = T2.owner_id JOIN sizes AS T3 ON T1.size_code = T3.size_code",
"gold": "SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id",
"em_norm": 0,
"ex": 1
},
{
"idx": 952,
"db_id": "dog_kennels",
"question": "List pairs of the owner's first name and the dogs's name",
"pred": "SELECT T2.first_name, T2.last_name FROM dogs AS T1 JOIN owners AS T2 ON T1.owner_id = T2.owner_id",
"gold": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 953,
"db_id": "dog_kennels",
"question": "What are each owner's first name and their dogs's name",
"pred": "SELECT T2.first_name, T2.last_name FROM dogs AS T1 JOIN owners AS T2 ON T1.owner_id = T2.owner_id",
"gold": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 954,
"db_id": "dog_kennels",
"question": "List the names of the dogs of the rarest breed and the treatment dates of them",
"pred": "SELECT T2.name, T1.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 AS T3 JOIN treatments AS T4 ON T3.treatment_type_code = T4.treatment_type_code WHERE breed_name = \"rast\")",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 955,
"db_id": "dog_kennels",
"question": "Which dogs are of the rarest breed? Show their names and treatment dates",
"pred": "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 breeds AS T3 JOIN treatments AS T4 ON T3.breed_code = T4.breed_code ORDER BY T3.date_of_treatment DESC LIMIT 1)",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 956,
"db_id": "dog_kennels",
"question": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name",
"pred": "SELECT T2.first_name, T2.name FROM owners AS T1 JOIN dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = \"Virginia\"",
"gold": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'",
"em_norm": 0,
"ex": 0
},
{
"idx": 957,
"db_id": "dog_kennels",
"question": "Find the first names of owners living in Virginia and the names of dogs they own",
"pred": "SELECT DISTINCT T1.first_name, T2.last_name FROM owners AS T1 JOIN dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = \"Virginia\"",
"gold": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'",
"em_norm": 0,
"ex": 0
},
{
"idx": 958,
"db_id": "dog_kennels",
"question": "What are the arriving date and the departing date of the dogs who have gone through a treatment",
"pred": "SELECT date_arrived, date_departed FROM dogs",
"gold": "SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 959,
"db_id": "dog_kennels",
"question": "Find the arriving date and the departing date of the dogs that received a treatment",
"pred": "SELECT date_arrived, date_departed FROM treatments",
"gold": "SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id",
"em_norm": 0,
"ex": 0
},
{
"idx": 960,
"db_id": "dog_kennels",
"question": "List the last name of the owner owning the youngest dog",
"pred": "SELECT last_name FROM owners ORDER BY age LIMIT 1",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 961,
"db_id": "dog_kennels",
"question": "Who owns the youngest dog? Give me his or her last name",
"pred": "SELECT last_name FROM dogs ORDER BY age LIMIT 1",
"gold": "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)",
"em_norm": 0,
"ex": 0
},
{
"idx": 962,
"db_id": "dog_kennels",
"question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin",
"pred": "SELECT email_address FROM professionals WHERE state = \"Hawaii\" OR state = \"Wisconsin\"",
"gold": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'",
"em_norm": 1,
"ex": 1
},
{
"idx": 963,
"db_id": "dog_kennels",
"question": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin",
"pred": "SELECT email_address FROM professionals WHERE state = \"Hawaii\" OR state = \"Wisconsin\"",
"gold": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'",
"em_norm": 1,
"ex": 1
},
{
"idx": 964,
"db_id": "dog_kennels",
"question": "What are the arriving date and the departing date of all the dogs",
"pred": "SELECT date_arrived, date_departed FROM dogs",
"gold": "SELECT date_arrived, date_departed FROM Dogs",
"em_norm": 1,
"ex": 1
},
{
"idx": 965,
"db_id": "dog_kennels",
"question": "List the arrival date and the departure date for all the dogs",
"pred": "SELECT date_arrived, date_departed FROM dogs",
"gold": "SELECT date_arrived, date_departed FROM Dogs",
"em_norm": 1,
"ex": 1
},
{
"idx": 966,
"db_id": "dog_kennels",
"question": "How many dogs went through any treatments",
"pred": "SELECT COUNT(*) FROM treatments",
"gold": "SELECT COUNT(DISTINCT dog_id) FROM Treatments",
"em_norm": 0,
"ex": 0
},
{
"idx": 967,
"db_id": "dog_kennels",
"question": "Count the number of dogs that went through a treatment",
"pred": "SELECT COUNT(*) FROM treatments",
"gold": "SELECT COUNT(DISTINCT dog_id) FROM Treatments",
"em_norm": 0,
"ex": 0
},
{
"idx": 968,
"db_id": "dog_kennels",
"question": "How many professionals have performed any treatment to dogs",
"pred": "SELECT COUNT(*) FROM treatments WHERE professional_id IN (SELECT professional_id FROM dogs)",
"gold": "SELECT COUNT(DISTINCT professional_id) FROM Treatments",
"em_norm": 0,
"ex": 0
},
{
"idx": 969,
"db_id": "dog_kennels",
"question": "Find the number of professionals who have ever treated dogs",
"pred": "SELECT COUNT(DISTINCT professional_id) FROM treatments",
"gold": "SELECT COUNT(DISTINCT professional_id) FROM Treatments",
"em_norm": 1,
"ex": 1
},
{
"idx": 970,
"db_id": "dog_kennels",
"question": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state",
"pred": "SELECT role, street, city, state FROM Professionals WHERE city LIKE 'West%'",
"gold": "SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'",
"em_norm": 0,
"ex": 0
},
{
"idx": 971,
"db_id": "dog_kennels",
"question": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'",
"pred": "SELECT role, street, city, state FROM professionals WHERE city LIKE 'West%'",
"gold": "SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'",
"em_norm": 0,
"ex": 0
},
{
"idx": 972,
"db_id": "dog_kennels",
"question": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email",
"pred": "SELECT first_name, last_name, email_address FROM owners WHERE state LIKE 'North%'",
"gold": "SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'",
"em_norm": 0,
"ex": 1
},
{
"idx": 973,
"db_id": "dog_kennels",
"question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'",
"pred": "SELECT first_name, last_name, email_address FROM owners WHERE state LIKE '%North%'",
"gold": "SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'",
"em_norm": 1,
"ex": 1
},
{
"idx": 974,
"db_id": "dog_kennels",
"question": "How many dogs have an age below the average",
"pred": "SELECT COUNT(*) FROM dogs WHERE age (SELECT AVG(age) FROM dogs)",
"gold": "SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)",
"em_norm": 0,
"ex": 0
},
{
"idx": 975,
"db_id": "dog_kennels",
"question": "Count the number of dogs of an age below the average",
"pred": "SELECT COUNT(*) FROM dogs WHERE age (SELECT AVG(age) FROM dogs)",
"gold": "SELECT COUNT(*) FROM Dogs WHERE age < (SELECT AVG(age) FROM Dogs)",
"em_norm": 0,
"ex": 0
},
{
"idx": 976,
"db_id": "dog_kennels",
"question": "How much does the most recent treatment cost",
"pred": "SELECT cost_of_treatment FROM treatments ORDER BY date_of_treatment DESC LIMIT 1",
"gold": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 977,
"db_id": "dog_kennels",
"question": "Show me the cost of the most recently performed treatment",
"pred": "SELECT cost_of_treatment FROM treatments ORDER BY date_of_treatment DESC LIMIT 1",
"gold": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 978,
"db_id": "dog_kennels",
"question": "How many dogs have not gone through any treatment",
"pred": "SELECT COUNT(*) FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments)",
"gold": "SELECT COUNT(*) FROM Dogs WHERE NOT dog_id IN (SELECT dog_id FROM Treatments)",
"em_norm": 1,
"ex": 1
},
{
"idx": 979,
"db_id": "dog_kennels",
"question": "Tell me the number of dogs that have not received any treatment",
"pred": "SELECT COUNT(*) FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments)",
"gold": "SELECT COUNT(*) FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments)",
"em_norm": 1,
"ex": 1
},
{
"idx": 980,
"db_id": "dog_kennels",
"question": "How many owners temporarily do not have any dogs",
"pred": "SELECT COUNT(*) FROM owners WHERE date_departed > \"null\"",
"gold": "SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs)",
"em_norm": 0,
"ex": 0
},
{
"idx": 981,
"db_id": "dog_kennels",
"question": "Find the number of owners who do not own any dogs at this moment",
"pred": "SELECT COUNT(*) FROM owners WHERE NOT owner_id IN (SELECT owner_id FROM dogs)",
"gold": "SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs)",
"em_norm": 1,
"ex": 1
},
{
"idx": 982,
"db_id": "dog_kennels",
"question": "How many professionals did not operate any treatment on dogs",
"pred": "SELECT COUNT(*) FROM professionals WHERE NOT professional_id IN (SELECT professional_id FROM treatments)",
"gold": "SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)",
"em_norm": 1,
"ex": 1
},
{
"idx": 983,
"db_id": "dog_kennels",
"question": "Find the number of professionals who have not treated any dogs",
"pred": "SELECT COUNT(*) FROM professionals WHERE NOT professional_id IN (SELECT professional_id FROM treatments)",
"gold": "SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)",
"em_norm": 1,
"ex": 1
},
{
"idx": 984,
"db_id": "dog_kennels",
"question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no",
"pred": "SELECT name, age, weight FROM dogs WHERE abandoned_yn = 1 AND 0 = 0",
"gold": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1",
"em_norm": 0,
"ex": 1
},
{
"idx": 985,
"db_id": "dog_kennels",
"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",
"pred": "SELECT name, age, weight FROM dogs WHERE abandoned_yn = 1 UNION SELECT name, age, weight FROM dogs WHERE abandoned_yn = 0",
"gold": "SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 986,
"db_id": "dog_kennels",
"question": "What is the average age of all the dogs",
"pred": "SELECT AVG(age) FROM dogs",
"gold": "SELECT AVG(age) FROM Dogs",
"em_norm": 1,
"ex": 1
},
{
"idx": 987,
"db_id": "dog_kennels",
"question": "Compute the average age of all the dogs",
"pred": "SELECT AVG(age) FROM dogs",
"gold": "SELECT AVG(age) FROM Dogs",
"em_norm": 1,
"ex": 1
},
{
"idx": 988,
"db_id": "dog_kennels",
"question": "What is the age of the oldest dog",
"pred": "SELECT age FROM dogs ORDER BY date_of_birth LIMIT 1",
"gold": "SELECT MAX(age) FROM Dogs",
"em_norm": 0,
"ex": 0
},
{
"idx": 989,
"db_id": "dog_kennels",
"question": "Tell me the age of the oldest dog",
"pred": "SELECT age FROM dogs ORDER BY date_of_birth LIMIT 1",
"gold": "SELECT MAX(age) FROM Dogs",
"em_norm": 0,
"ex": 0
},
{
"idx": 990,
"db_id": "dog_kennels",
"question": "How much does each charge type costs? List both charge type and amount",
"pred": "SELECT charge_type, charge_amount FROM charges GROUP BY charge_type",
"gold": "SELECT charge_type, charge_amount FROM Charges",
"em_norm": 0,
"ex": 1
},
{
"idx": 991,
"db_id": "dog_kennels",
"question": "List each charge type and its amount",
"pred": "SELECT charge_type, charge_amount FROM charges",
"gold": "SELECT charge_type, charge_amount FROM Charges",
"em_norm": 1,
"ex": 1
},
{
"idx": 992,
"db_id": "dog_kennels",
"question": "How much does the most expensive charge type costs",
"pred": "SELECT charge_amount FROM charges ORDER BY charge_type DESC LIMIT 1",
"gold": "SELECT MAX(charge_amount) FROM Charges",
"em_norm": 0,
"ex": 1
},
{
"idx": 993,
"db_id": "dog_kennels",
"question": "What is the charge amount of the most expensive charge type",
"pred": "SELECT charge_amount FROM charges ORDER BY charge_type DESC LIMIT 1",
"gold": "SELECT MAX(charge_amount) FROM Charges",
"em_norm": 0,
"ex": 1
},
{
"idx": 994,
"db_id": "dog_kennels",
"question": "List the email, cell phone and home phone of all the professionals",
"pred": "SELECT email_address, cell_number, home_phone FROM Professionals",
"gold": "SELECT email_address, cell_number, home_phone FROM professionals",
"em_norm": 1,
"ex": 1
},
{
"idx": 995,
"db_id": "dog_kennels",
"question": "What are the email, cell phone and home phone of each professional",
"pred": "SELECT email_address, cell_number, home_phone FROM Professionals",
"gold": "SELECT email_address, cell_number, home_phone FROM professionals",
"em_norm": 1,
"ex": 1
},
{
"idx": 996,
"db_id": "dog_kennels",
"question": "What are all the possible breed type and size type combinations",
"pred": "SELECT DISTINCT breed_code, size_code FROM sizes",
"gold": "SELECT DISTINCT breed_code, size_code FROM dogs",
"em_norm": 0,
"ex": 0
},
{
"idx": 997,
"db_id": "dog_kennels",
"question": "Find the distinct breed type and size type combinations for dogs",
"pred": "SELECT DISTINCT breed_code, size_code FROM dogs",
"gold": "SELECT DISTINCT breed_code, size_code FROM dogs",
"em_norm": 1,
"ex": 1
},
{
"idx": 998,
"db_id": "dog_kennels",
"question": "List the first name of all the professionals along with the description of the treatment they have done",
"pred": "SELECT T1.first_name, T2.treatment_type_description FROM professionals AS T1 JOIN treatments AS T2 ON T1.professional_id = T2.professional_id",
"gold": "SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code",
"em_norm": 0,
"ex": 0
},
{
"idx": 999,
"db_id": "dog_kennels",
"question": "What are each professional's first name and description of the treatment they have performed",
"pred": "SELECT T1.first_name, T1.treatment_type_description FROM professionals AS T1 JOIN treatments AS T2 ON T1.professional_id = T2.professional_id",
"gold": "SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code",
"em_norm": 0,
"ex": 0
},
{
"idx": 1000,
"db_id": "singer",
"question": "How many singers are there",
"pred": "SELECT COUNT(*) FROM singer",
"gold": "SELECT COUNT(*) FROM singer",
"em_norm": 1,
"ex": 1
},
{
"idx": 1001,
"db_id": "singer",
"question": "What is the count of singers",
"pred": "SELECT COUNT(*) FROM singer",
"gold": "SELECT COUNT(*) FROM singer",
"em_norm": 1,
"ex": 1
},
{
"idx": 1002,
"db_id": "singer",
"question": "List the name of singers in ascending order of net worth",
"pred": "SELECT Name FROM singer ORDER BY Net_worth_millions ASC",
"gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC",
"em_norm": 1,
"ex": 1
},
{
"idx": 1003,
"db_id": "singer",
"question": "What are the names of singers ordered by ascending net worth",
"pred": "SELECT Name FROM singer ORDER BY Net_worth_millions ASC",
"gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC",
"em_norm": 1,
"ex": 1
},
{
"idx": 1004,
"db_id": "singer",
"question": "What are the birth year and citizenship of singers",
"pred": "SELECT Birth_Year, Citizenship FROM singer",
"gold": "SELECT Birth_Year, Citizenship FROM singer",
"em_norm": 1,
"ex": 1
},
{
"idx": 1005,
"db_id": "singer",
"question": "What are the birth years and citizenships of the singers",
"pred": "SELECT Birth_Year, Citizenship FROM singer",
"gold": "SELECT Birth_Year, Citizenship FROM singer",
"em_norm": 1,
"ex": 1
},
{
"idx": 1006,
"db_id": "singer",
"question": "List the name of singers whose citizenship is not \"France\"",
"pred": "SELECT Name FROM singer WHERE Citizenship > \"France\"",
"gold": "SELECT Name FROM singer WHERE Citizenship <> \"France\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 1007,
"db_id": "singer",
"question": "What are the names of the singers who are not French citizens",
"pred": "SELECT Name FROM singer WHERE Citizenship > 'French'",
"gold": "SELECT Name FROM singer WHERE Citizenship <> \"France\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 1008,
"db_id": "singer",
"question": "Show the name of singers whose birth year is either 1948 or 1949",
"pred": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949",
"gold": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949",
"em_norm": 1,
"ex": 1
},
{
"idx": 1009,
"db_id": "singer",
"question": "What are the names of the singers whose birth years are either 1948 or 1949",
"pred": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949",
"gold": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949",
"em_norm": 1,
"ex": 1
},
{
"idx": 1010,
"db_id": "singer",
"question": "What is the name of the singer with the largest net worth",
"pred": "SELECT name FROM singer ORDER BY net_worth_millions DESC LIMIT 1",
"gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 1011,
"db_id": "singer",
"question": "What is the name of the singer who is worth the most",
"pred": "SELECT T2.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID ORDER BY net_worth_millions DESC LIMIT 1",
"gold": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1",
"em_norm": 0,
"ex": 0
},
{
"idx": 1012,
"db_id": "singer",
"question": "Show different citizenship of singers and the number of singers of each citizenship",
"pred": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship",
"gold": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship",
"em_norm": 1,
"ex": 1
},
{
"idx": 1013,
"db_id": "singer",
"question": "For each citizenship, how many singers are from that country",
"pred": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship",
"gold": "SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship",
"em_norm": 1,
"ex": 1
},
{
"idx": 1014,
"db_id": "singer",
"question": "Please show the most common citizenship of singers",
"pred": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 1015,
"db_id": "singer",
"question": "What is the most common singer citizenship",
"pred": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1",
"gold": "SELECT citizenship FROM singer GROUP BY citizenship ORDER BY COUNT(*) DESC LIMIT 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 1016,
"db_id": "singer",
"question": "Show different citizenships and the maximum net worth of singers of each citizenship",
"pred": "SELECT Citizenship, MAX(Net_worth_millions) FROM singer GROUP BY Citizenship",
"gold": "SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship",
"em_norm": 1,
"ex": 1
},
{
"idx": 1017,
"db_id": "singer",
"question": "For each citizenship, what is the maximum net worth",
"pred": "SELECT Citizenship, MAX(Net_worth_millions) FROM singer GROUP BY Citizenship",
"gold": "SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship",
"em_norm": 1,
"ex": 1
},
{
"idx": 1018,
"db_id": "singer",
"question": "Show titles of songs and names of singers",
"pred": "SELECT T3.Title, T2.Name FROM song AS T1 JOIN singer AS T2 ON T1.Singer_ID = T2.Singer_ID",
"gold": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID",
"em_norm": 0,
"ex": 0
},
{
"idx": 1019,
"db_id": "singer",
"question": "What are the song titles and singer names",
"pred": "SELECT T2.Title, T1.Name FROM song AS T1 JOIN singer AS T2 ON T1.Singer_ID = T2.Singer_ID",
"gold": "SELECT T2.Title, T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID",
"em_norm": 0,
"ex": 0
},
{
"idx": 1020,
"db_id": "singer",
"question": "Show distinct names of singers that have songs with sales more than 300000",
"pred": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000",
"gold": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000",
"em_norm": 1,
"ex": 1
},
{
"idx": 1021,
"db_id": "singer",
"question": "what are the different names of the singers that have sales more than 300000",
"pred": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000",
"gold": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000",
"em_norm": 1,
"ex": 1
},
{
"idx": 1022,
"db_id": "singer",
"question": "Show the names of singers that have more than one song",
"pred": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1",
"gold": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 1023,
"db_id": "singer",
"question": "What are the names of the singers that have more than one songs",
"pred": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1",
"gold": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1",
"em_norm": 1,
"ex": 1
},
{
"idx": 1024,
"db_id": "singer",
"question": "Show the names of singers and the total sales of their songs",
"pred": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name",
"gold": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name",
"em_norm": 1,
"ex": 1
},
{
"idx": 1025,
"db_id": "singer",
"question": "For each singer name, what is the total sales for their songs",
"pred": "SELECT SUM(Sales) FROM singer",
"gold": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name",
"em_norm": 0,
"ex": 0
},
{
"idx": 1026,
"db_id": "singer",
"question": "List the name of singers that do not have any song",
"pred": "SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song)",
"gold": "SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song)",
"em_norm": 1,
"ex": 1
},
{
"idx": 1027,
"db_id": "singer",
"question": "What is the sname of every sing that does not have any song",
"pred": "SELECT name FROM singer WHERE NOT song_id IN (SELECT song_id FROM song)",
"gold": "SELECT Name FROM singer WHERE NOT Singer_ID IN (SELECT Singer_ID FROM song)",
"em_norm": 0,
"ex": 0
},
{
"idx": 1028,
"db_id": "singer",
"question": "Show the citizenship shared by singers with birth year before 1945 and after 1955",
"pred": "SELECT Citizenship FROM singer WHERE Birth_year 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_year > 1955",
"gold": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955",
"em_norm": 0,
"ex": 0
},
{
"idx": 1029,
"db_id": "singer",
"question": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955",
"pred": "SELECT Citizenship FROM singer WHERE Birth_year 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_year > 1955",
"gold": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955",
"em_norm": 0,
"ex": 0
},
{
"idx": 1030,
"db_id": "real_estate_properties",
"question": "How many available features are there in total",
"pred": "SELECT COUNT(*) FROM Other_available_features",
"gold": "SELECT COUNT(*) FROM Other_Available_Features",
"em_norm": 1,
"ex": 1
},
{
"idx": 1031,
"db_id": "real_estate_properties",
"question": "What is the feature type name of feature AirCon",
"pred": "SELECT T1.feature_type_name FROM Ref_Feature_Types AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T2.feature_name = \"AirCon\"",
"gold": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\"",
"em_norm": 0,
"ex": 0
},
{
"idx": 1032,
"db_id": "real_estate_properties",
"question": "Show the property type descriptions of properties belonging to that code",
"pred": "SELECT T1.property_type_description FROM Ref_Property_Types AS T1 JOIN Properties AS T2 ON T1.property_type_code = T2.property_type_code",
"gold": "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",
"em_norm": 0,
"ex": 0
},
{
"idx": 1033,
"db_id": "real_estate_properties",
"question": "What are the names of properties that are either houses or apartments with more than 1 room",
"pred": "SELECT property_name FROM Properties WHERE room_count > 1 AND property_name = 'House' OR room_count > 1 UNION SELECT property_name FROM Properties WHERE property_type_code = 'Apartment'",
"gold": "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",
"em_norm": 0,
"ex": 0
}
] |