query
stringlengths
18
577
table_names
sequence
tables
sequence
answer
stringlengths
45
443k
source
stringlengths
139
60.7M
target
stringlengths
19
480k
SELECT name , main_services FROM station ORDER BY total_passengers DESC LIMIT 3
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["Name","Main_Services"],"index":[0,1,2],"data":[["London Waterloo","South Western Main Line West of England Main Line"],["London Victoria","Brighton Main Line Chatham Main Line"],["London Bridge","South Eastern Main Line Thameslink"]]}
SELECT name , main_services FROM station ORDER BY total_passengers DESC LIMIT 3 <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : Name | Main_Services row 1 : London Waterloo | South Western Main Line West of England Main Line row 2 : London Victoria | Brighton Main Line Chatham Main Line row 3 : London Bridge | South Eastern Main Line Thameslink
SELECT avg(total_passengers) , max(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["avg(total_passengers)","max(total_passengers)"],"index":[0],"data":[[48.015,103.534]]}
SELECT avg(total_passengers) , max(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow' <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : avg(total_passengers) | max(total_passengers) row 1 : 48.015 | 103.534
SELECT LOCATION , sum(number_of_platforms) , sum(total_passengers) FROM station GROUP BY LOCATION
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["Location","sum(number_of_platforms)","sum(total_passengers)"],"index":[0,1,2],"data":[["Birmingham",13,36.331],["Glasgow",17,29.658],["London",140,498.507]]}
SELECT LOCATION , sum(number_of_platforms) , sum(total_passengers) FROM station GROUP BY LOCATION <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : Location | sum(number_of_platforms) | sum(total_passengers) row 1 : Birmingham | 13 | 36.331 row 2 : Glasgow | 17 | 29.658 row 3 : London | 140 | 498.507
SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["Location"],"index":[0,1],"data":[["London"],["Glasgow"]]}
SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25 <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : Location row 1 : London row 2 : Glasgow
SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["Location"],"index":[0],"data":[["Birmingham"]]}
SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15 <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : Location row 1 : Birmingham
SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["Location"],"index":[0],"data":[["London"]]}
SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1 <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : Location row 1 : London
SELECT name , TIME , service FROM train
[ "train" ]
[ "{\"columns\":[\"Train_ID\",\"Name\",\"Time\",\"Service\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,\"Ananthapuri Express\",\"17:15\",\"Daily\"],[2,\"Guruvayur Express\",\"22:10\",\"Daily\"],[3,\"Guruvayur Express\",\"4:49\",\"Daily\"],[4,\"Ananthapuri Express\",\"11:35\",\"Daily\"],[5,\"Jayanthi Janatha Express\",\"06:30\",\"Daily\"],[6,\"Island Express\",\"11:15\",\"Daily\"],[7,\"Madurai Fast Passenger\",\"21:49\",\"Daily\"],[8,\"Quilon Fast Passenger\",\"04:55\",\"Daily\"],[9,\"Island Express\",\"16:59\",\"Daily\"],[10,\"Jayanthi Janatha Express\",\"10:38\",\"Daily\"],[11,\"Parasuram Express\",\"04:20\",\"Daily\"]]}" ]
{"columns":["Name","Time","Service"],"index":[0,1,2,3,4,5,6,7,8,9,10],"data":[["Ananthapuri Express","17:15","Daily"],["Guruvayur Express","22:10","Daily"],["Guruvayur Express","4:49","Daily"],["Ananthapuri Express","11:35","Daily"],["Jayanthi Janatha Express","06:30","Daily"],["Island Express","11:15","Daily"],["Madurai Fast Passenger","21:49","Daily"],["Quilon Fast Passenger","04:55","Daily"],["Island Express","16:59","Daily"],["Jayanthi Janatha Express","10:38","Daily"],["Parasuram Express","04:20","Daily"]]}
SELECT name , TIME , service FROM train <table_name> : train col : Train_ID | Name | Time | Service row 1 : 1 | Ananthapuri Express | 17:15 | Daily row 2 : 2 | Guruvayur Express | 22:10 | Daily row 3 : 3 | Guruvayur Express | 4:49 | Daily row 4 : 4 | Ananthapuri Express | 11:35 | Daily row 5 : 5 | Jayanthi Janatha Express | 06:30 | Daily row 6 : 6 | Island Express | 11:15 | Daily row 7 : 7 | Madurai Fast Passenger | 21:49 | Daily row 8 : 8 | Quilon Fast Passenger | 04:55 | Daily row 9 : 9 | Island Express | 16:59 | Daily row 10 : 10 | Jayanthi Janatha Express | 10:38 | Daily row 11 : 11 | Parasuram Express | 04:20 | Daily
col : Name | Time | Service row 1 : Ananthapuri Express | 17:15 | Daily row 2 : Guruvayur Express | 22:10 | Daily row 3 : Guruvayur Express | 4:49 | Daily row 4 : Ananthapuri Express | 11:35 | Daily row 5 : Jayanthi Janatha Express | 06:30 | Daily row 6 : Island Express | 11:15 | Daily row 7 : Madurai Fast Passenger | 21:49 | Daily row 8 : Quilon Fast Passenger | 04:55 | Daily row 9 : Island Express | 16:59 | Daily row 10 : Jayanthi Janatha Express | 10:38 | Daily row 11 : Parasuram Express | 04:20 | Daily
SELECT count(*) FROM train
[ "train" ]
[ "{\"columns\":[\"Train_ID\",\"Name\",\"Time\",\"Service\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,\"Ananthapuri Express\",\"17:15\",\"Daily\"],[2,\"Guruvayur Express\",\"22:10\",\"Daily\"],[3,\"Guruvayur Express\",\"4:49\",\"Daily\"],[4,\"Ananthapuri Express\",\"11:35\",\"Daily\"],[5,\"Jayanthi Janatha Express\",\"06:30\",\"Daily\"],[6,\"Island Express\",\"11:15\",\"Daily\"],[7,\"Madurai Fast Passenger\",\"21:49\",\"Daily\"],[8,\"Quilon Fast Passenger\",\"04:55\",\"Daily\"],[9,\"Island Express\",\"16:59\",\"Daily\"],[10,\"Jayanthi Janatha Express\",\"10:38\",\"Daily\"],[11,\"Parasuram Express\",\"04:20\",\"Daily\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[11]]}
SELECT count(*) FROM train <table_name> : train col : Train_ID | Name | Time | Service row 1 : 1 | Ananthapuri Express | 17:15 | Daily row 2 : 2 | Guruvayur Express | 22:10 | Daily row 3 : 3 | Guruvayur Express | 4:49 | Daily row 4 : 4 | Ananthapuri Express | 11:35 | Daily row 5 : 5 | Jayanthi Janatha Express | 06:30 | Daily row 6 : 6 | Island Express | 11:15 | Daily row 7 : 7 | Madurai Fast Passenger | 21:49 | Daily row 8 : 8 | Quilon Fast Passenger | 04:55 | Daily row 9 : 9 | Island Express | 16:59 | Daily row 10 : 10 | Jayanthi Janatha Express | 10:38 | Daily row 11 : 11 | Parasuram Express | 04:20 | Daily
col : count(*) row 1 : 11
SELECT name , service FROM train ORDER BY TIME
[ "train" ]
[ "{\"columns\":[\"Train_ID\",\"Name\",\"Time\",\"Service\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,\"Ananthapuri Express\",\"17:15\",\"Daily\"],[2,\"Guruvayur Express\",\"22:10\",\"Daily\"],[3,\"Guruvayur Express\",\"4:49\",\"Daily\"],[4,\"Ananthapuri Express\",\"11:35\",\"Daily\"],[5,\"Jayanthi Janatha Express\",\"06:30\",\"Daily\"],[6,\"Island Express\",\"11:15\",\"Daily\"],[7,\"Madurai Fast Passenger\",\"21:49\",\"Daily\"],[8,\"Quilon Fast Passenger\",\"04:55\",\"Daily\"],[9,\"Island Express\",\"16:59\",\"Daily\"],[10,\"Jayanthi Janatha Express\",\"10:38\",\"Daily\"],[11,\"Parasuram Express\",\"04:20\",\"Daily\"]]}" ]
{"columns":["Name","Service"],"index":[0,1,2,3,4,5,6,7,8,9,10],"data":[["Parasuram Express","Daily"],["Quilon Fast Passenger","Daily"],["Jayanthi Janatha Express","Daily"],["Jayanthi Janatha Express","Daily"],["Island Express","Daily"],["Ananthapuri Express","Daily"],["Island Express","Daily"],["Ananthapuri Express","Daily"],["Madurai Fast Passenger","Daily"],["Guruvayur Express","Daily"],["Guruvayur Express","Daily"]]}
SELECT name , service FROM train ORDER BY TIME <table_name> : train col : Train_ID | Name | Time | Service row 1 : 1 | Ananthapuri Express | 17:15 | Daily row 2 : 2 | Guruvayur Express | 22:10 | Daily row 3 : 3 | Guruvayur Express | 4:49 | Daily row 4 : 4 | Ananthapuri Express | 11:35 | Daily row 5 : 5 | Jayanthi Janatha Express | 06:30 | Daily row 6 : 6 | Island Express | 11:15 | Daily row 7 : 7 | Madurai Fast Passenger | 21:49 | Daily row 8 : 8 | Quilon Fast Passenger | 04:55 | Daily row 9 : 9 | Island Express | 16:59 | Daily row 10 : 10 | Jayanthi Janatha Express | 10:38 | Daily row 11 : 11 | Parasuram Express | 04:20 | Daily
col : Name | Service row 1 : Parasuram Express | Daily row 2 : Quilon Fast Passenger | Daily row 3 : Jayanthi Janatha Express | Daily row 4 : Jayanthi Janatha Express | Daily row 5 : Island Express | Daily row 6 : Ananthapuri Express | Daily row 7 : Island Express | Daily row 8 : Ananthapuri Express | Daily row 9 : Madurai Fast Passenger | Daily row 10 : Guruvayur Express | Daily row 11 : Guruvayur Express | Daily
SELECT T2.name , count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id
[ "station", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name","count(*)"],"index":[0,1,2,3,4,5,6],"data":[["London Waterloo",3],["London Victoria",1],["London Bridge",1],["London Euston",1],["London King's Cross",1],["Glasgow Central",2],["East Croydon",2]]}
SELECT T2.name , count(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name | count(*) row 1 : London Waterloo | 3 row 2 : London Victoria | 1 row 3 : London Bridge | 1 row 4 : London Euston | 1 row 5 : London King's Cross | 1 row 6 : Glasgow Central | 2 row 7 : East Croydon | 2
SELECT T2.name , T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id
[ "station", "train", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Name\",\"Time\",\"Service\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,\"Ananthapuri Express\",\"17:15\",\"Daily\"],[2,\"Guruvayur Express\",\"22:10\",\"Daily\"],[3,\"Guruvayur Express\",\"4:49\",\"Daily\"],[4,\"Ananthapuri Express\",\"11:35\",\"Daily\"],[5,\"Jayanthi Janatha Express\",\"06:30\",\"Daily\"],[6,\"Island Express\",\"11:15\",\"Daily\"],[7,\"Madurai Fast Passenger\",\"21:49\",\"Daily\"],[8,\"Quilon Fast Passenger\",\"04:55\",\"Daily\"],[9,\"Island Express\",\"16:59\",\"Daily\"],[10,\"Jayanthi Janatha Express\",\"10:38\",\"Daily\"],[11,\"Parasuram Express\",\"04:20\",\"Daily\"]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name","Name"],"index":[0,1,2,3,4,5,6,7,8,9,10],"data":[["London Waterloo","Ananthapuri Express"],["London Waterloo","Guruvayur Express"],["London Waterloo","Guruvayur Express"],["London Victoria","Ananthapuri Express"],["London Bridge","Jayanthi Janatha Express"],["London Euston","Island Express"],["London King's Cross","Madurai Fast Passenger"],["Glasgow Central","Quilon Fast Passenger"],["Glasgow Central","Island Express"],["East Croydon","Jayanthi Janatha Express"],["East Croydon","Parasuram Express"]]}
SELECT T2.name , T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train col : Train_ID | Name | Time | Service row 1 : 1 | Ananthapuri Express | 17:15 | Daily row 2 : 2 | Guruvayur Express | 22:10 | Daily row 3 : 3 | Guruvayur Express | 4:49 | Daily row 4 : 4 | Ananthapuri Express | 11:35 | Daily row 5 : 5 | Jayanthi Janatha Express | 06:30 | Daily row 6 : 6 | Island Express | 11:15 | Daily row 7 : 7 | Madurai Fast Passenger | 21:49 | Daily row 8 : 8 | Quilon Fast Passenger | 04:55 | Daily row 9 : 9 | Island Express | 16:59 | Daily row 10 : 10 | Jayanthi Janatha Express | 10:38 | Daily row 11 : 11 | Parasuram Express | 04:20 | Daily <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name -1 | Name -2 row 1 : London Waterloo | Ananthapuri Express row 2 : London Waterloo | Guruvayur Express row 3 : London Waterloo | Guruvayur Express row 4 : London Victoria | Ananthapuri Express row 5 : London Bridge | Jayanthi Janatha Express row 6 : London Euston | Island Express row 7 : London King's Cross | Madurai Fast Passenger row 8 : Glasgow Central | Quilon Fast Passenger row 9 : Glasgow Central | Island Express row 10 : East Croydon | Jayanthi Janatha Express row 11 : East Croydon | Parasuram Express
SELECT T3.name , T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC
[ "station", "train", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Name\",\"Time\",\"Service\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,\"Ananthapuri Express\",\"17:15\",\"Daily\"],[2,\"Guruvayur Express\",\"22:10\",\"Daily\"],[3,\"Guruvayur Express\",\"4:49\",\"Daily\"],[4,\"Ananthapuri Express\",\"11:35\",\"Daily\"],[5,\"Jayanthi Janatha Express\",\"06:30\",\"Daily\"],[6,\"Island Express\",\"11:15\",\"Daily\"],[7,\"Madurai Fast Passenger\",\"21:49\",\"Daily\"],[8,\"Quilon Fast Passenger\",\"04:55\",\"Daily\"],[9,\"Island Express\",\"16:59\",\"Daily\"],[10,\"Jayanthi Janatha Express\",\"10:38\",\"Daily\"],[11,\"Parasuram Express\",\"04:20\",\"Daily\"]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name","Time"],"index":[0,1,2,3,4,5,6,7,8],"data":[["Guruvayur Express","4:49"],["Guruvayur Express","22:10"],["Madurai Fast Passenger","21:49"],["Ananthapuri Express","17:15"],["Ananthapuri Express","11:35"],["Island Express","11:15"],["Jayanthi Janatha Express","10:38"],["Jayanthi Janatha Express","06:30"],["Parasuram Express","04:20"]]}
SELECT T3.name , T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train col : Train_ID | Name | Time | Service row 1 : 1 | Ananthapuri Express | 17:15 | Daily row 2 : 2 | Guruvayur Express | 22:10 | Daily row 3 : 3 | Guruvayur Express | 4:49 | Daily row 4 : 4 | Ananthapuri Express | 11:35 | Daily row 5 : 5 | Jayanthi Janatha Express | 06:30 | Daily row 6 : 6 | Island Express | 11:15 | Daily row 7 : 7 | Madurai Fast Passenger | 21:49 | Daily row 8 : 8 | Quilon Fast Passenger | 04:55 | Daily row 9 : 9 | Island Express | 16:59 | Daily row 10 : 10 | Jayanthi Janatha Express | 10:38 | Daily row 11 : 11 | Parasuram Express | 04:20 | Daily <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name | Time row 1 : Guruvayur Express | 4:49 row 2 : Guruvayur Express | 22:10 row 3 : Madurai Fast Passenger | 21:49 row 4 : Ananthapuri Express | 17:15 row 5 : Ananthapuri Express | 11:35 row 6 : Island Express | 11:15 row 7 : Jayanthi Janatha Express | 10:38 row 8 : Jayanthi Janatha Express | 06:30 row 9 : Parasuram Express | 04:20
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1
[ "station", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name"],"index":[0],"data":[["London Waterloo"]]}
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY count(*) DESC LIMIT 1 <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name row 1 : London Waterloo
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING count(*) >= 2
[ "station", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name"],"index":[0,1,2],"data":[["London Waterloo"],["Glasgow Central"],["East Croydon"]]}
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING count(*) >= 2 <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name row 1 : London Waterloo row 2 : Glasgow Central row 3 : East Croydon
SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*) = 1
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["Location"],"index":[0,1],"data":[["Birmingham"],["Glasgow"]]}
SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*) = 1 <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : Location row 1 : Birmingham row 2 : Glasgow
SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)
[ "station", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name"],"index":[0,1,2,3,4],"data":[["London Liverpool Street"],["London Charing Cross"],["Birmingham New Street"],["London St Pancras"],["Stratford"]]}
SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station) <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name row 1 : London Liverpool Street row 2 : London Charing Cross row 3 : Birmingham New Street row 4 : London St Pancras row 5 : Stratford
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Guruvayur Express"
[ "station", "train", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Name\",\"Time\",\"Service\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,\"Ananthapuri Express\",\"17:15\",\"Daily\"],[2,\"Guruvayur Express\",\"22:10\",\"Daily\"],[3,\"Guruvayur Express\",\"4:49\",\"Daily\"],[4,\"Ananthapuri Express\",\"11:35\",\"Daily\"],[5,\"Jayanthi Janatha Express\",\"06:30\",\"Daily\"],[6,\"Island Express\",\"11:15\",\"Daily\"],[7,\"Madurai Fast Passenger\",\"21:49\",\"Daily\"],[8,\"Quilon Fast Passenger\",\"04:55\",\"Daily\"],[9,\"Island Express\",\"16:59\",\"Daily\"],[10,\"Jayanthi Janatha Express\",\"10:38\",\"Daily\"],[11,\"Parasuram Express\",\"04:20\",\"Daily\"]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name"],"index":[0],"data":[["London Waterloo"]]}
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Guruvayur Express" <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train col : Train_ID | Name | Time | Service row 1 : 1 | Ananthapuri Express | 17:15 | Daily row 2 : 2 | Guruvayur Express | 22:10 | Daily row 3 : 3 | Guruvayur Express | 4:49 | Daily row 4 : 4 | Ananthapuri Express | 11:35 | Daily row 5 : 5 | Jayanthi Janatha Express | 06:30 | Daily row 6 : 6 | Island Express | 11:15 | Daily row 7 : 7 | Madurai Fast Passenger | 21:49 | Daily row 8 : 8 | Quilon Fast Passenger | 04:55 | Daily row 9 : 9 | Island Express | 16:59 | Daily row 10 : 10 | Jayanthi Janatha Express | 10:38 | Daily row 11 : 11 | Parasuram Express | 04:20 | Daily <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name row 1 : London Waterloo
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = "London")
[ "station", "train", "train_station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}", "{\"columns\":[\"Train_ID\",\"Name\",\"Time\",\"Service\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,\"Ananthapuri Express\",\"17:15\",\"Daily\"],[2,\"Guruvayur Express\",\"22:10\",\"Daily\"],[3,\"Guruvayur Express\",\"4:49\",\"Daily\"],[4,\"Ananthapuri Express\",\"11:35\",\"Daily\"],[5,\"Jayanthi Janatha Express\",\"06:30\",\"Daily\"],[6,\"Island Express\",\"11:15\",\"Daily\"],[7,\"Madurai Fast Passenger\",\"21:49\",\"Daily\"],[8,\"Quilon Fast Passenger\",\"04:55\",\"Daily\"],[9,\"Island Express\",\"16:59\",\"Daily\"],[10,\"Jayanthi Janatha Express\",\"10:38\",\"Daily\"],[11,\"Parasuram Express\",\"04:20\",\"Daily\"]]}", "{\"columns\":[\"Train_ID\",\"Station_ID\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10],\"data\":[[1,1],[2,1],[3,1],[4,2],[5,3],[6,5],[7,8],[8,9],[9,9],[10,10],[11,10]]}" ]
{"columns":["Name"],"index":[0,1],"data":[["Quilon Fast Passenger"],["Island Express"]]}
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = "London") <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15 <table_name> : train col : Train_ID | Name | Time | Service row 1 : 1 | Ananthapuri Express | 17:15 | Daily row 2 : 2 | Guruvayur Express | 22:10 | Daily row 3 : 3 | Guruvayur Express | 4:49 | Daily row 4 : 4 | Ananthapuri Express | 11:35 | Daily row 5 : 5 | Jayanthi Janatha Express | 06:30 | Daily row 6 : 6 | Island Express | 11:15 | Daily row 7 : 7 | Madurai Fast Passenger | 21:49 | Daily row 8 : 8 | Quilon Fast Passenger | 04:55 | Daily row 9 : 9 | Island Express | 16:59 | Daily row 10 : 10 | Jayanthi Janatha Express | 10:38 | Daily row 11 : 11 | Parasuram Express | 04:20 | Daily <table_name> : train_station col : Train_ID | Station_ID row 1 : 1 | 1 row 2 : 2 | 1 row 3 : 3 | 1 row 4 : 4 | 2 row 5 : 5 | 3 row 6 : 6 | 5 row 7 : 7 | 8 row 8 : 8 | 9 row 9 : 9 | 9 row 10 : 10 | 10 row 11 : 11 | 10
col : Name row 1 : Quilon Fast Passenger row 2 : Island Express
SELECT name , LOCATION FROM station ORDER BY Annual_entry_exit , Annual_interchanges
[ "station" ]
[ "{\"columns\":[\"Station_ID\",\"Name\",\"Annual_entry_exit\",\"Annual_interchanges\",\"Total_Passengers\",\"Location\",\"Main_Services\",\"Number_of_Platforms\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11],\"data\":[[1,\"London Waterloo\",94.046,9.489,103.534,\"London\",\"South Western Main Line West of England Main Line\",19],[2,\"London Victoria\",76.231,9.157,85.38,\"London\",\"Brighton Main Line Chatham Main Line\",19],[3,\"London Bridge\",52.634,8.742,61.376,\"London\",\"South Eastern Main Line Thameslink\",12],[4,\"London Liverpool Street\",57.107,2.353,59.46,\"London\",\"Great Eastern Main Line West Anglia Main Line\",18],[5,\"London Euston\",36.609,3.832,40.44,\"London\",\"West Coast Main Line\",18],[6,\"London Charing Cross\",38.005,1.99,39.995,\"London\",\"South Eastern Main Line\",6],[7,\"Birmingham New Street\",31.214,5.118,36.331,\"Birmingham\",\"West Coast Main Line Cross Country Route\",13],[8,\"London King's Cross\",27.875,3.022,30.896,\"London\",\"East Coast Main Line\",12],[9,\"Glasgow Central\",26.639,3.018,29.658,\"Glasgow\",\"West Coast Main Line\",17],[10,\"East Croydon\",20.551,6.341,26.892,\"London\",\"Brighton Main Line\",6],[11,\"London St Pancras\",22.996,3.676,26.672,\"London\",\"Midland Main Line Thameslink High-Speed 1 Eurostar\",15],[12,\"Stratford\",21.797,2.064,23.862,\"London\",\"Great Eastern Main Line Lea Valley Lines\",15]]}" ]
{"columns":["Name","Location"],"index":[0,1,2,3,4,5,6,7,8,9,10,11],"data":[["East Croydon","London"],["Stratford","London"],["London St Pancras","London"],["Glasgow Central","Glasgow"],["London King's Cross","London"],["Birmingham New Street","Birmingham"],["London Euston","London"],["London Charing Cross","London"],["London Bridge","London"],["London Liverpool Street","London"],["London Victoria","London"],["London Waterloo","London"]]}
SELECT name , LOCATION FROM station ORDER BY Annual_entry_exit , Annual_interchanges <table_name> : station col : Station_ID | Name | Annual_entry_exit | Annual_interchanges | Total_Passengers | Location | Main_Services | Number_of_Platforms row 1 : 1 | London Waterloo | 94.046 | 9.489 | 103.534 | London | South Western Main Line West of England Main Line | 19 row 2 : 2 | London Victoria | 76.231 | 9.157 | 85.38 | London | Brighton Main Line Chatham Main Line | 19 row 3 : 3 | London Bridge | 52.634 | 8.742 | 61.376 | London | South Eastern Main Line Thameslink | 12 row 4 : 4 | London Liverpool Street | 57.107 | 2.3529999999999998 | 59.46 | London | Great Eastern Main Line West Anglia Main Line | 18 row 5 : 5 | London Euston | 36.609 | 3.832 | 40.44 | London | West Coast Main Line | 18 row 6 : 6 | London Charing Cross | 38.005 | 1.99 | 39.995 | London | South Eastern Main Line | 6 row 7 : 7 | Birmingham New Street | 31.214 | 5.118 | 36.331 | Birmingham | West Coast Main Line Cross Country Route | 13 row 8 : 8 | London King's Cross | 27.875 | 3.022 | 30.896 | London | East Coast Main Line | 12 row 9 : 9 | Glasgow Central | 26.639 | 3.018 | 29.658 | Glasgow | West Coast Main Line | 17 row 10 : 10 | East Croydon | 20.551 | 6.341 | 26.892 | London | Brighton Main Line | 6 row 11 : 11 | London St Pancras | 22.996 | 3.676 | 26.672 | London | Midland Main Line Thameslink High-Speed 1 Eurostar | 15 row 12 : 12 | Stratford | 21.797 | 2.064 | 23.862 | London | Great Eastern Main Line Lea Valley Lines | 15
col : Name | Location row 1 : East Croydon | London row 2 : Stratford | London row 3 : London St Pancras | London row 4 : Glasgow Central | Glasgow row 5 : London King's Cross | London row 6 : Birmingham New Street | Birmingham row 7 : London Euston | London row 8 : London Charing Cross | London row 9 : London Bridge | London row 10 : London Liverpool Street | London row 11 : London Victoria | London row 12 : London Waterloo | London
SELECT vehicle_id FROM Vehicles;
[ "Vehicles" ]
[ "{\"columns\":[\"vehicle_id\",\"vehicle_details\"],\"index\":[0,1,2],\"data\":[[1,\"Van\"],[2,\"Truck\"],[3,\"Car\"]]}" ]
{"columns":["vehicle_id"],"index":[0,1,2],"data":[[1],[2],[3]]}
SELECT vehicle_id FROM Vehicles; <table_name> : Vehicles col : vehicle_id | vehicle_details row 1 : 1 | Van row 2 : 2 | Truck row 3 : 3 | Car
col : vehicle_id row 1 : 1 row 2 : 2 row 3 : 3
SELECT count(*) FROM Vehicles;
[ "Vehicles" ]
[ "{\"columns\":[\"vehicle_id\",\"vehicle_details\"],\"index\":[0,1,2],\"data\":[[1,\"Van\"],[2,\"Truck\"],[3,\"Car\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[3]]}
SELECT count(*) FROM Vehicles; <table_name> : Vehicles col : vehicle_id | vehicle_details row 1 : 1 | Van row 2 : 2 | Truck row 3 : 3 | Car
col : count(*) row 1 : 3
SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;
[ "Vehicles" ]
[ "{\"columns\":[\"vehicle_id\",\"vehicle_details\"],\"index\":[0,1,2],\"data\":[[1,\"Van\"],[2,\"Truck\"],[3,\"Car\"]]}" ]
{"columns":["vehicle_details"],"index":[0],"data":[["Van"]]}
SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1; <table_name> : Vehicles col : vehicle_id | vehicle_details row 1 : 1 | Van row 2 : 2 | Truck row 3 : 3 | Car
col : vehicle_details row 1 : Van
SELECT first_name , middle_name , last_name FROM Staff;
[ "Staff" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["first_name","middle_name","last_name"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"data":[["Janessa","Amara","Sawayn"],["Camylle","Icie","Weissnat"],["Kaitlin","Stephania","Mertz"],["Rebekah","Sherwood","Hermann"],["Jedidiah","Dejon","Herzog"],["Eulalia","Tre","Maggio"],["Queenie","Madelyn","Macejkovic"],["Titus","Duane","Durgan"],["Margie","Caesar","Doyle"],["Jaleel","Maiya","Rogahn"],["Winnifred","Liam","Jast"],["Lincoln","Benny","Carroll"],["Ernestina","Clarabelle","Mraz"],["Ludie","Ulices","Kuphal"],["Simeon","Mayra","Turner"]]}
SELECT first_name , middle_name , last_name FROM Staff; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : first_name | middle_name | last_name row 1 : Janessa | Amara | Sawayn row 2 : Camylle | Icie | Weissnat row 3 : Kaitlin | Stephania | Mertz row 4 : Rebekah | Sherwood | Hermann row 5 : Jedidiah | Dejon | Herzog row 6 : Eulalia | Tre | Maggio row 7 : Queenie | Madelyn | Macejkovic row 8 : Titus | Duane | Durgan row 9 : Margie | Caesar | Doyle row 10 : Jaleel | Maiya | Rogahn row 11 : Winnifred | Liam | Jast row 12 : Lincoln | Benny | Carroll row 13 : Ernestina | Clarabelle | Mraz row 14 : Ludie | Ulices | Kuphal row 15 : Simeon | Mayra | Turner
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
[ "Staff" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["date_of_birth"],"index":[0],"data":[["2010-12-08 16:55:14"]]}
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : date_of_birth row 1 : 2010-12-08 16:55:14
SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
[ "Staff" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["date_joined_staff"],"index":[0],"data":[["2017-04-27 03:21:26"]]}
SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : date_joined_staff row 1 : 2017-04-27 03:21:26
SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
[ "Staff" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["date_left_staff"],"index":[0],"data":[["2018-03-23 22:53:12"]]}
SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : date_left_staff row 1 : 2018-03-23 22:53:12
SELECT count(*) FROM Staff WHERE first_name = "Ludie";
[ "Staff" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[1]]}
SELECT count(*) FROM Staff WHERE first_name = "Ludie"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : count(*) row 1 : 1
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
[ "Staff" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["nickname"],"index":[0],"data":[["thompson.constantin"]]}
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : nickname row 1 : thompson.constantin
SELECT count(*) FROM Staff;
[ "Staff" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[15]]}
SELECT count(*) FROM Staff; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : count(*) row 1 : 15
SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
[ "Addresses", "Staff" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["city"],"index":[0],"data":[["Damianfort"]]}
SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : city row 1 : Damianfort
SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
[ "Addresses", "Staff" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["country","state_province_county"],"index":[0],"data":[["USA","Connecticut"]]}
SELECT T1.country , T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : country | state_province_county row 1 : USA | Connecticut
SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin";
[ "Customers", "Lessons" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["sum(T1.lesson_time)"],"index":[0],"data":[[11]]}
SELECT sum(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin"; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : sum(T1.lesson_time) row 1 : 11
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
[ "Addresses", "Staff" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["zip_postcode"],"index":[0],"data":[["61121"]]}
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : zip_postcode row 1 : 61121
SELECT count(*) FROM Addresses WHERE state_province_county = "Georgia";
[ "Addresses" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[2]]}
SELECT count(*) FROM Addresses WHERE state_province_county = "Georgia"; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA
col : count(*) row 1 : 2
SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort";
[ "Addresses", "Staff" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["first_name","last_name"],"index":[0,1],"data":[["Janessa","Sawayn"],["Jedidiah","Herzog"]]}
SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : first_name | last_name row 1 : Janessa | Sawayn row 2 : Jedidiah | Herzog
SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1;
[ "Addresses", "Staff" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["city","count(*)"],"index":[0],"data":[["Port Melyssa",4]]}
SELECT T1.city , count(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY count(*) DESC LIMIT 1; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : city | count(*) row 1 : Port Melyssa | 4
SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4;
[ "Addresses", "Staff" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}" ]
{"columns":["state_province_county"],"index":[0,1],"data":[["Connecticut"],["Louisiana"]]}
SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING count(*) BETWEEN 2 AND 4; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03
col : state_province_county row 1 : Connecticut row 2 : Louisiana
SELECT first_name , last_name FROM Customers;
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["first_name","last_name"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"data":[["Carole","Bernhard"],["Genevieve","Terry"],["Clara","Ortiz"],["Jordy","Tromp"],["Millie","Bruen"],["Amya","Spinka"],["Marina","Koelpin"],["Dianna","Trantow"],["Leif","Mertz"],["Rylan","Goodwin"],["Ray","Kohler"],["Omer","Leuschke"],["Sigrid","Schmeler"],["Estelle","Grant"],["Dameon","Sanford"]]}
SELECT first_name , last_name FROM Customers; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : first_name | last_name row 1 : Carole | Bernhard row 2 : Genevieve | Terry row 3 : Clara | Ortiz row 4 : Jordy | Tromp row 5 : Millie | Bruen row 6 : Amya | Spinka row 7 : Marina | Koelpin row 8 : Dianna | Trantow row 9 : Leif | Mertz row 10 : Rylan | Goodwin row 11 : Ray | Kohler row 12 : Omer | Leuschke row 13 : Sigrid | Schmeler row 14 : Estelle | Grant row 15 : Dameon | Sanford
SELECT email_address , date_of_birth FROM Customers WHERE first_name = "Carole"
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["email_address","date_of_birth"],"index":[0],"data":[["everette.goyette@example.org","1998-12-15 13:24:40"]]}
SELECT email_address , date_of_birth FROM Customers WHERE first_name = "Carole" <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : email_address | date_of_birth row 1 : everette.goyette@example.org | 1998-12-15 13:24:40
SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000;
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["phone_number","email_address"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12],"data":[["+14(5)2351480248","huel.jana@example.org"],["374-483-2758x85087","hilario.sporer@example.org"],["218.550.1362","afranecki@example.com"],["1-618-535-9750","asha.kilback@example.org"],["1-673-962-8158x7646","kozey.citlalli@example.org"],["(662)490-3108","mayert.judy@example.com"],["206-054-0689x05861","kroberts@example.org"],["753.921.0871","mariela28@example.org"],["(297)122-0086","karina.carroll@example.net"],["417.136.2900x672","myrl.lind@example.net"],["192-395-2411","wehner.harold@example.com"],["1-875-045-0806","ehowell@example.com"],["(729)396-4354x3576","kitty.hand@example.net"]]}
SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : phone_number | email_address row 1 : +14(5)2351480248 | huel.jana@example.org row 2 : 374-483-2758x85087 | hilario.sporer@example.org row 3 : 218.550.1362 | afranecki@example.com row 4 : 1-618-535-9750 | asha.kilback@example.org row 5 : 1-673-962-8158x7646 | kozey.citlalli@example.org row 6 : (662)490-3108 | mayert.judy@example.com row 7 : 206-054-0689x05861 | kroberts@example.org row 8 : 753.921.0871 | mariela28@example.org row 9 : (297)122-0086 | karina.carroll@example.net row 10 : 417.136.2900x672 | myrl.lind@example.net row 11 : 192-395-2411 | wehner.harold@example.com row 12 : 1-875-045-0806 | ehowell@example.com row 13 : (729)396-4354x3576 | kitty.hand@example.net
SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = "Marina" OR last_name = "Kohler"
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["customer_status_code","cell_mobile_phone_number","email_address"],"index":[0,1],"data":[["Bad Customer","848-099-2095x785","mayert.judy@example.com"],["Good Customer","577-584-4864","karina.carroll@example.net"]]}
SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = "Marina" OR last_name = "Kohler" <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : customer_status_code | cell_mobile_phone_number | email_address row 1 : Bad Customer | 848-099-2095x785 | mayert.judy@example.com row 2 : Good Customer | 577-584-4864 | karina.carroll@example.net
SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["date_of_birth"],"index":[0,1,2,3,4,5],"data":[["1994-06-21 01:34:56"],["1993-02-07 05:40:26"],["1993-03-08 08:48:42"],["1994-05-07 01:32:16"],["1988-09-19 14:45:56"],["1996-05-23 01:21:54"]]}
SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer' <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : date_of_birth row 1 : 1994-06-21 01:34:56 row 2 : 1993-02-07 05:40:26 row 3 : 1993-03-08 08:48:42 row 4 : 1994-05-07 01:32:16 row 5 : 1988-09-19 14:45:56 row 6 : 1996-05-23 01:21:54
SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard";
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["date_became_customer"],"index":[0],"data":[["2016-05-11 17:03:48"]]}
SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard"; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : date_became_customer row 1 : 2016-05-11 17:03:48
SELECT count(*) FROM Customers;
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[15]]}
SELECT count(*) FROM Customers; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : count(*) row 1 : 15
SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["customer_status_code","count(*)"],"index":[0,1],"data":[["Bad Customer",9],["Good Customer",6]]}
SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : customer_status_code | count(*) row 1 : Bad Customer | 9 row 2 : Good Customer | 6
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["customer_status_code"],"index":[0],"data":[["Good Customer"]]}
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : customer_status_code row 1 : Good Customer
SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed";
[ "Customers", "Lessons" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[1]]}
SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed"; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : count(*) row 1 : 1
SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["max(amount_outstanding)","min(amount_outstanding)","avg(amount_outstanding)"],"index":[0],"data":[[9500.0,255.0,5643.7333333333]]}
SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : max(amount_outstanding) | min(amount_outstanding) | avg(amount_outstanding) row 1 : 9500 | 255 | 5643.7333333333
SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;
[ "Customers" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["first_name","last_name"],"index":[0,1,2],"data":[["Rylan","Goodwin"],["Omer","Leuschke"],["Sigrid","Schmeler"]]}
SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : first_name | last_name row 1 : Rylan | Goodwin row 2 : Omer | Leuschke row 3 : Sigrid | Schmeler
SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt";
[ "Addresses", "Customers" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["first_name","last_name"],"index":[0],"data":[["Sigrid","Schmeler"]]}
SELECT T1.first_name , T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt"; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : first_name | last_name row 1 : Sigrid | Schmeler
SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
[ "Addresses", "Customers" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["country"],"index":[0],"data":[["USA"]]}
SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard" <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : country row 1 : USA
SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
[ "Addresses", "Customers" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["zip_postcode"],"index":[0],"data":[["75074"]]}
SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard" <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : zip_postcode row 1 : 75074
SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;
[ "Addresses", "Customers" ]
[ "{\"columns\":[\"address_id\",\"line_1_number_building\",\"city\",\"zip_postcode\",\"state_province_county\",\"country\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,\"3904 Stroman Passage\",\"Port Melyssa\",\"14445\",\"Georgia\",\"USA\"],[2,\"053 Quigley Island\",\"Hagenesfurt\",\"22194\",\"Kentucky\",\"USA\"],[3,\"00704 Zoe Alley\",\"Lake Elaina\",\"08938\",\"Georgia\",\"USA\"],[4,\"484 O'Hara Drive\",\"Buckridgehaven\",\"00005\",\"Oregon\",\"USA\"],[5,\"354 Frederik Ridge\",\"Powlowskichester\",\"27559\",\"Ohio\",\"USA\"],[6,\"376 Kallie Tunnel Apt. 784\",\"Elviebury\",\"63768\",\"Connecticut\",\"USA\"],[7,\"56461 Baumbach Well Suite 634\",\"Lockmanfurt\",\"34975\",\"Washington\",\"USA\"],[8,\"29085 Dejah Pine Suite 059\",\"Lake Rafaela\",\"80376\",\"WestVirginia\",\"USA\"],[9,\"535 Ariel Brook\",\"Port Jackelinemouth\",\"85954\",\"Maine\",\"USA\"],[10,\"2291 Larkin Ports\",\"South Richieport\",\"95098\",\"Idaho\",\"USA\"],[11,\"37698 Hahn Curve Apt. 572\",\"South Eugene\",\"99903\",\"Alabama\",\"USA\"],[12,\"7089 Mueller Forks\",\"New Bernieceburgh\",\"38197\",\"Louisiana\",\"USA\"],[13,\"43235 Jazmin Mountain Suite 251\",\"Ericamouth\",\"75074\",\"Louisiana\",\"USA\"],[14,\"4834 Schaefer Light Suite 947\",\"Damianfort\",\"61121\",\"Connecticut\",\"USA\"],[15,\"9260 Streich Mountain\",\"West Edmondview\",\"43988\",\"Kentucky\",\"USA\"]]}", "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["city"],"index":[0],"data":[["South Richieport"]]}
SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1; <table_name> : Addresses col : address_id | line_1_number_building | city | zip_postcode | state_province_county | country row 1 : 1 | 3904 Stroman Passage | Port Melyssa | 14445 | Georgia | USA row 2 : 2 | 053 Quigley Island | Hagenesfurt | 22194 | Kentucky | USA row 3 : 3 | 00704 Zoe Alley | Lake Elaina | 8938 | Georgia | USA row 4 : 4 | 484 O'Hara Drive | Buckridgehaven | 5 | Oregon | USA row 5 : 5 | 354 Frederik Ridge | Powlowskichester | 27559 | Ohio | USA row 6 : 6 | 376 Kallie Tunnel Apt. 784 | Elviebury | 63768 | Connecticut | USA row 7 : 7 | 56461 Baumbach Well Suite 634 | Lockmanfurt | 34975 | Washington | USA row 8 : 8 | 29085 Dejah Pine Suite 059 | Lake Rafaela | 80376 | WestVirginia | USA row 9 : 9 | 535 Ariel Brook | Port Jackelinemouth | 85954 | Maine | USA row 10 : 10 | 2291 Larkin Ports | South Richieport | 95098 | Idaho | USA row 11 : 11 | 37698 Hahn Curve Apt. 572 | South Eugene | 99903 | Alabama | USA row 12 : 12 | 7089 Mueller Forks | New Bernieceburgh | 38197 | Louisiana | USA row 13 : 13 | 43235 Jazmin Mountain Suite 251 | Ericamouth | 75074 | Louisiana | USA row 14 : 14 | 4834 Schaefer Light Suite 947 | Damianfort | 61121 | Connecticut | USA row 15 : 15 | 9260 Streich Mountain | West Edmondview | 43988 | Kentucky | USA <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : city row 1 : South Richieport
SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard"
[ "Customers", "Customer_Payments" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}", "{\"columns\":[\"customer_id\",\"datetime_payment\",\"payment_method_code\",\"amount_payment\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[11,\"2018-02-05 18:44:46\",\"Direct Debit\",9570.93],[2,\"2018-02-24 10:07:05\",\"Direct Debit\",8180.26],[14,\"2018-02-27 20:08:53\",\"Direct Debit\",4610.26],[6,\"2018-03-12 08:41:47\",\"Direct Debit\",4032.33],[3,\"2018-02-06 13:35:58\",\"Credit Card\",787.12],[14,\"2018-03-12 13:31:36\",\"Credit Card\",6970.98],[4,\"2018-02-03 15:04:36\",\"Direct Debit\",6311.37],[7,\"2018-02-15 16:38:49\",\"Direct Debit\",4773.16],[13,\"2018-02-21 05:28:49\",\"Credit Card\",7440.34],[6,\"2018-02-19 09:06:29\",\"Direct Debit\",5475.26],[2,\"2018-03-20 21:38:41\",\"Direct Debit\",1708.18],[10,\"2018-02-01 06:15:31\",\"Direct Debit\",6782.84],[1,\"2018-03-18 13:48:13\",\"Direct Debit\",9886.62],[14,\"2018-02-19 01:49:59\",\"Credit Card\",3073.98],[12,\"2018-03-06 21:36:41\",\"Credit Card\",9414.74]]}" ]
{"columns":["sum(T1.amount_payment)"],"index":[0],"data":[[9886.62]]}
SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard" <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426 <table_name> : Customer_Payments col : customer_id | datetime_payment | payment_method_code | amount_payment row 1 : 11 | 2018-02-05 18:44:46 | Direct Debit | 9570.93 row 2 : 2 | 2018-02-24 10:07:05 | Direct Debit | 8180.26 row 3 : 14 | 2018-02-27 20:08:53 | Direct Debit | 4610.26 row 4 : 6 | 2018-03-12 08:41:47 | Direct Debit | 4032.33 row 5 : 3 | 2018-02-06 13:35:58 | Credit Card | 787.12 row 6 : 14 | 2018-03-12 13:31:36 | Credit Card | 6970.98 row 7 : 4 | 2018-02-03 15:04:36 | Direct Debit | 6311.37 row 8 : 7 | 2018-02-15 16:38:49 | Direct Debit | 4773.16 row 9 : 13 | 2018-02-21 05:28:49 | Credit Card | 7440.34 row 10 : 6 | 2018-02-19 09:06:29 | Direct Debit | 5475.26 row 11 : 2 | 2018-03-20 21:38:41 | Direct Debit | 1708.18 row 12 : 10 | 2018-02-01 06:15:31 | Direct Debit | 6782.84 row 13 : 1 | 2018-03-18 13:48:13 | Direct Debit | 9886.62 row 14 : 14 | 2018-02-19 01:49:59 | Credit Card | 3073.98 row 15 : 12 | 2018-03-06 21:36:41 | Credit Card | 9414.74
col : sum(T1.amount_payment) row 1 : 9886.62
SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );
[ "Customers", "Customer_Payments" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}", "{\"columns\":[\"customer_id\",\"datetime_payment\",\"payment_method_code\",\"amount_payment\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[11,\"2018-02-05 18:44:46\",\"Direct Debit\",9570.93],[2,\"2018-02-24 10:07:05\",\"Direct Debit\",8180.26],[14,\"2018-02-27 20:08:53\",\"Direct Debit\",4610.26],[6,\"2018-03-12 08:41:47\",\"Direct Debit\",4032.33],[3,\"2018-02-06 13:35:58\",\"Credit Card\",787.12],[14,\"2018-03-12 13:31:36\",\"Credit Card\",6970.98],[4,\"2018-02-03 15:04:36\",\"Direct Debit\",6311.37],[7,\"2018-02-15 16:38:49\",\"Direct Debit\",4773.16],[13,\"2018-02-21 05:28:49\",\"Credit Card\",7440.34],[6,\"2018-02-19 09:06:29\",\"Direct Debit\",5475.26],[2,\"2018-03-20 21:38:41\",\"Direct Debit\",1708.18],[10,\"2018-02-01 06:15:31\",\"Direct Debit\",6782.84],[1,\"2018-03-18 13:48:13\",\"Direct Debit\",9886.62],[14,\"2018-02-19 01:49:59\",\"Credit Card\",3073.98],[12,\"2018-03-06 21:36:41\",\"Credit Card\",9414.74]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[4]]}
SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments ); <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426 <table_name> : Customer_Payments col : customer_id | datetime_payment | payment_method_code | amount_payment row 1 : 11 | 2018-02-05 18:44:46 | Direct Debit | 9570.93 row 2 : 2 | 2018-02-24 10:07:05 | Direct Debit | 8180.26 row 3 : 14 | 2018-02-27 20:08:53 | Direct Debit | 4610.26 row 4 : 6 | 2018-03-12 08:41:47 | Direct Debit | 4032.33 row 5 : 3 | 2018-02-06 13:35:58 | Credit Card | 787.12 row 6 : 14 | 2018-03-12 13:31:36 | Credit Card | 6970.98 row 7 : 4 | 2018-02-03 15:04:36 | Direct Debit | 6311.37 row 8 : 7 | 2018-02-15 16:38:49 | Direct Debit | 4773.16 row 9 : 13 | 2018-02-21 05:28:49 | Credit Card | 7440.34 row 10 : 6 | 2018-02-19 09:06:29 | Direct Debit | 5475.26 row 11 : 2 | 2018-03-20 21:38:41 | Direct Debit | 1708.18 row 12 : 10 | 2018-02-01 06:15:31 | Direct Debit | 6782.84 row 13 : 1 | 2018-03-18 13:48:13 | Direct Debit | 9886.62 row 14 : 14 | 2018-02-19 01:49:59 | Credit Card | 3073.98 row 15 : 12 | 2018-03-06 21:36:41 | Credit Card | 9414.74
col : count(*) row 1 : 4
SELECT T2.first_name , T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2;
[ "Customers", "Customer_Payments" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}", "{\"columns\":[\"customer_id\",\"datetime_payment\",\"payment_method_code\",\"amount_payment\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[11,\"2018-02-05 18:44:46\",\"Direct Debit\",9570.93],[2,\"2018-02-24 10:07:05\",\"Direct Debit\",8180.26],[14,\"2018-02-27 20:08:53\",\"Direct Debit\",4610.26],[6,\"2018-03-12 08:41:47\",\"Direct Debit\",4032.33],[3,\"2018-02-06 13:35:58\",\"Credit Card\",787.12],[14,\"2018-03-12 13:31:36\",\"Credit Card\",6970.98],[4,\"2018-02-03 15:04:36\",\"Direct Debit\",6311.37],[7,\"2018-02-15 16:38:49\",\"Direct Debit\",4773.16],[13,\"2018-02-21 05:28:49\",\"Credit Card\",7440.34],[6,\"2018-02-19 09:06:29\",\"Direct Debit\",5475.26],[2,\"2018-03-20 21:38:41\",\"Direct Debit\",1708.18],[10,\"2018-02-01 06:15:31\",\"Direct Debit\",6782.84],[1,\"2018-03-18 13:48:13\",\"Direct Debit\",9886.62],[14,\"2018-02-19 01:49:59\",\"Credit Card\",3073.98],[12,\"2018-03-06 21:36:41\",\"Credit Card\",9414.74]]}" ]
{"columns":["first_name","last_name"],"index":[0],"data":[["Estelle","Grant"]]}
SELECT T2.first_name , T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2; <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426 <table_name> : Customer_Payments col : customer_id | datetime_payment | payment_method_code | amount_payment row 1 : 11 | 2018-02-05 18:44:46 | Direct Debit | 9570.93 row 2 : 2 | 2018-02-24 10:07:05 | Direct Debit | 8180.26 row 3 : 14 | 2018-02-27 20:08:53 | Direct Debit | 4610.26 row 4 : 6 | 2018-03-12 08:41:47 | Direct Debit | 4032.33 row 5 : 3 | 2018-02-06 13:35:58 | Credit Card | 787.12 row 6 : 14 | 2018-03-12 13:31:36 | Credit Card | 6970.98 row 7 : 4 | 2018-02-03 15:04:36 | Direct Debit | 6311.37 row 8 : 7 | 2018-02-15 16:38:49 | Direct Debit | 4773.16 row 9 : 13 | 2018-02-21 05:28:49 | Credit Card | 7440.34 row 10 : 6 | 2018-02-19 09:06:29 | Direct Debit | 5475.26 row 11 : 2 | 2018-03-20 21:38:41 | Direct Debit | 1708.18 row 12 : 10 | 2018-02-01 06:15:31 | Direct Debit | 6782.84 row 13 : 1 | 2018-03-18 13:48:13 | Direct Debit | 9886.62 row 14 : 14 | 2018-02-19 01:49:59 | Credit Card | 3073.98 row 15 : 12 | 2018-03-06 21:36:41 | Credit Card | 9414.74
col : first_name | last_name row 1 : Estelle | Grant
SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;
[ "Customer_Payments" ]
[ "{\"columns\":[\"customer_id\",\"datetime_payment\",\"payment_method_code\",\"amount_payment\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[11,\"2018-02-05 18:44:46\",\"Direct Debit\",9570.93],[2,\"2018-02-24 10:07:05\",\"Direct Debit\",8180.26],[14,\"2018-02-27 20:08:53\",\"Direct Debit\",4610.26],[6,\"2018-03-12 08:41:47\",\"Direct Debit\",4032.33],[3,\"2018-02-06 13:35:58\",\"Credit Card\",787.12],[14,\"2018-03-12 13:31:36\",\"Credit Card\",6970.98],[4,\"2018-02-03 15:04:36\",\"Direct Debit\",6311.37],[7,\"2018-02-15 16:38:49\",\"Direct Debit\",4773.16],[13,\"2018-02-21 05:28:49\",\"Credit Card\",7440.34],[6,\"2018-02-19 09:06:29\",\"Direct Debit\",5475.26],[2,\"2018-03-20 21:38:41\",\"Direct Debit\",1708.18],[10,\"2018-02-01 06:15:31\",\"Direct Debit\",6782.84],[1,\"2018-03-18 13:48:13\",\"Direct Debit\",9886.62],[14,\"2018-02-19 01:49:59\",\"Credit Card\",3073.98],[12,\"2018-03-06 21:36:41\",\"Credit Card\",9414.74]]}" ]
{"columns":["payment_method_code","count(*)"],"index":[0,1],"data":[["Credit Card",5],["Direct Debit",10]]}
SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code; <table_name> : Customer_Payments col : customer_id | datetime_payment | payment_method_code | amount_payment row 1 : 11 | 2018-02-05 18:44:46 | Direct Debit | 9570.93 row 2 : 2 | 2018-02-24 10:07:05 | Direct Debit | 8180.26 row 3 : 14 | 2018-02-27 20:08:53 | Direct Debit | 4610.26 row 4 : 6 | 2018-03-12 08:41:47 | Direct Debit | 4032.33 row 5 : 3 | 2018-02-06 13:35:58 | Credit Card | 787.12 row 6 : 14 | 2018-03-12 13:31:36 | Credit Card | 6970.98 row 7 : 4 | 2018-02-03 15:04:36 | Direct Debit | 6311.37 row 8 : 7 | 2018-02-15 16:38:49 | Direct Debit | 4773.16 row 9 : 13 | 2018-02-21 05:28:49 | Credit Card | 7440.34 row 10 : 6 | 2018-02-19 09:06:29 | Direct Debit | 5475.26 row 11 : 2 | 2018-03-20 21:38:41 | Direct Debit | 1708.18 row 12 : 10 | 2018-02-01 06:15:31 | Direct Debit | 6782.84 row 13 : 1 | 2018-03-18 13:48:13 | Direct Debit | 9886.62 row 14 : 14 | 2018-02-19 01:49:59 | Credit Card | 3073.98 row 15 : 12 | 2018-03-06 21:36:41 | Credit Card | 9414.74
col : payment_method_code | count(*) row 1 : Credit Card | 5 row 2 : Direct Debit | 10
SELECT count(*) FROM Lessons WHERE lesson_status_code = "Cancelled";
[ "Lessons" ]
[ "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[9]]}
SELECT count(*) FROM Lessons WHERE lesson_status_code = "Cancelled"; <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : count(*) row 1 : 9
SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%";
[ "Staff", "Lessons" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["lesson_id"],"index":[0],"data":[[4]]}
SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : lesson_id row 1 : 4
SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"
[ "Staff", "Lessons" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[5]]}
SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%" <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : count(*) row 1 : 5
SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
[ "Staff", "Lessons" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["sum(lesson_time)"],"index":[0],"data":[[9]]}
SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : sum(lesson_time) row 1 : 9
SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
[ "Staff", "Lessons" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["avg(price)"],"index":[0],"data":[[306.0]]}
SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"; <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : avg(price) row 1 : 306
SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray"
[ "Customers", "Lessons" ]
[ "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[2]]}
SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray" <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : count(*) row 1 : 2
SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff
[ "Staff", "Customers" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}", "{\"columns\":[\"customer_id\",\"customer_address_id\",\"customer_status_code\",\"date_became_customer\",\"date_of_birth\",\"first_name\",\"last_name\",\"amount_outstanding\",\"email_address\",\"phone_number\",\"cell_mobile_phone_number\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,13,\"Bad Customer\",\"2016-05-11 17:03:48\",\"1998-12-15 13:24:40\",\"Carole\",\"Bernhard\",255.0,\"everette.goyette@example.org\",\"07278206718\",\"861-638-9797\"],[2,10,\"Bad Customer\",\"2015-11-16 22:52:14\",\"1995-07-17 12:13:16\",\"Genevieve\",\"Terry\",7256.0,\"huel.jana@example.org\",\"+14(5)2351480248\",\"578-518-4785x612\"],[3,10,\"Good Customer\",\"2016-04-08 00:28:15\",\"1994-06-21 01:34:56\",\"Clara\",\"Ortiz\",9443.0,\"hilario.sporer@example.org\",\"374-483-2758x85087\",\"1-197-686-2849x8761\"],[4,8,\"Good Customer\",\"2016-07-22 15:53:44\",\"1993-02-07 05:40:26\",\"Jordy\",\"Tromp\",3751.0,\"afranecki@example.com\",\"218.550.1362\",\"081-097-3684\"],[5,2,\"Bad Customer\",\"2017-11-12 04:34:44\",\"1991-02-10 00:42:17\",\"Millie\",\"Bruen\",5687.0,\"asha.kilback@example.org\",\"1-618-535-9750\",\"00659133944\"],[6,9,\"Good Customer\",\"2017-04-16 05:12:21\",\"1993-03-08 08:48:42\",\"Amya\",\"Spinka\",3900.0,\"kozey.citlalli@example.org\",\"1-673-962-8158x7646\",\"(780)719-4206x033\"],[7,1,\"Bad Customer\",\"2015-06-24 03:50:04\",\"1996-11-07 05:30:55\",\"Marina\",\"Koelpin\",8144.0,\"mayert.judy@example.com\",\"(662)490-3108\",\"848-099-2095x785\"],[8,10,\"Bad Customer\",\"2017-10-05 14:15:46\",\"1998-09-18 04:45:01\",\"Dianna\",\"Trantow\",9500.0,\"kroberts@example.org\",\"206-054-0689x05861\",\"739-333-6966x187\"],[9,12,\"Bad Customer\",\"2016-02-17 08:26:23\",\"1991-12-05 02:50:15\",\"Leif\",\"Mertz\",7093.0,\"mariela28@example.org\",\"753.921.0871\",\"1-387-258-1016x96963\"],[10,1,\"Bad Customer\",\"2017-11-25 01:42:26\",\"1996-08-29 00:03:08\",\"Rylan\",\"Goodwin\",1000.0,\"nichole59@example.com\",\"1-387-884-0656\",\"+45(6)4872981083\"],[11,13,\"Good Customer\",\"2016-11-30 10:37:41\",\"1994-05-07 01:32:16\",\"Ray\",\"Kohler\",9447.0,\"karina.carroll@example.net\",\"(297)122-0086\",\"577-584-4864\"],[12,9,\"Bad Customer\",\"2016-05-13 07:38:23\",\"1993-07-09 11:11:36\",\"Omer\",\"Leuschke\",2099.0,\"myrl.lind@example.net\",\"417.136.2900x672\",\"200.830.8723\"],[13,7,\"Good Customer\",\"2016-09-04 23:08:20\",\"1988-09-19 14:45:56\",\"Sigrid\",\"Schmeler\",2255.0,\"wehner.harold@example.com\",\"192-395-2411\",\"+57(9)4602098297\"],[14,10,\"Good Customer\",\"2016-03-18 06:14:18\",\"1996-05-23 01:21:54\",\"Estelle\",\"Grant\",5494.0,\"ehowell@example.com\",\"1-875-045-0806\",\"1-401-108-8016x078\"],[15,1,\"Bad Customer\",\"2015-09-25 13:59:21\",\"1996-08-30 06:17:50\",\"Dameon\",\"Sanford\",9332.0,\"kitty.hand@example.net\",\"(729)396-4354x3576\",\"(630)964-2426\"]]}" ]
{"columns":["last_name"],"index":[0],"data":[["Mertz"]]}
SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03 <table_name> : Customers col : customer_id | customer_address_id | customer_status_code | date_became_customer | date_of_birth | first_name | last_name | amount_outstanding | email_address | phone_number | cell_mobile_phone_number row 1 : 1 | 13 | Bad Customer | 2016-05-11 17:03:48 | 1998-12-15 13:24:40 | Carole | Bernhard | 255 | everette.goyette@example.org | 07278206718 | 861-638-9797 row 2 : 2 | 10 | Bad Customer | 2015-11-16 22:52:14 | 1995-07-17 12:13:16 | Genevieve | Terry | 7256 | huel.jana@example.org | +14(5)2351480248 | 578-518-4785x612 row 3 : 3 | 10 | Good Customer | 2016-04-08 00:28:15 | 1994-06-21 01:34:56 | Clara | Ortiz | 9443 | hilario.sporer@example.org | 374-483-2758x85087 | 1-197-686-2849x8761 row 4 : 4 | 8 | Good Customer | 2016-07-22 15:53:44 | 1993-02-07 05:40:26 | Jordy | Tromp | 3751 | afranecki@example.com | 218.550.1362 | 081-097-3684 row 5 : 5 | 2 | Bad Customer | 2017-11-12 04:34:44 | 1991-02-10 00:42:17 | Millie | Bruen | 5687 | asha.kilback@example.org | 1-618-535-9750 | 00659133944 row 6 : 6 | 9 | Good Customer | 2017-04-16 05:12:21 | 1993-03-08 08:48:42 | Amya | Spinka | 3900 | kozey.citlalli@example.org | 1-673-962-8158x7646 | (780)719-4206x033 row 7 : 7 | 1 | Bad Customer | 2015-06-24 03:50:04 | 1996-11-07 05:30:55 | Marina | Koelpin | 8144 | mayert.judy@example.com | (662)490-3108 | 848-099-2095x785 row 8 : 8 | 10 | Bad Customer | 2017-10-05 14:15:46 | 1998-09-18 04:45:01 | Dianna | Trantow | 9500 | kroberts@example.org | 206-054-0689x05861 | 739-333-6966x187 row 9 : 9 | 12 | Bad Customer | 2016-02-17 08:26:23 | 1991-12-05 02:50:15 | Leif | Mertz | 7093 | mariela28@example.org | 753.921.0871 | 1-387-258-1016x96963 row 10 : 10 | 1 | Bad Customer | 2017-11-25 01:42:26 | 1996-08-29 00:03:08 | Rylan | Goodwin | 1000 | nichole59@example.com | 1-387-884-0656 | +45(6)4872981083 row 11 : 11 | 13 | Good Customer | 2016-11-30 10:37:41 | 1994-05-07 01:32:16 | Ray | Kohler | 9447 | karina.carroll@example.net | (297)122-0086 | 577-584-4864 row 12 : 12 | 9 | Bad Customer | 2016-05-13 07:38:23 | 1993-07-09 11:11:36 | Omer | Leuschke | 2099 | myrl.lind@example.net | 417.136.2900x672 | 200.830.8723 row 13 : 13 | 7 | Good Customer | 2016-09-04 23:08:20 | 1988-09-19 14:45:56 | Sigrid | Schmeler | 2255 | wehner.harold@example.com | 192-395-2411 | +57(9)4602098297 row 14 : 14 | 10 | Good Customer | 2016-03-18 06:14:18 | 1996-05-23 01:21:54 | Estelle | Grant | 5494 | ehowell@example.com | 1-875-045-0806 | 1-401-108-8016x078 row 15 : 15 | 1 | Bad Customer | 2015-09-25 13:59:21 | 1996-08-30 06:17:50 | Dameon | Sanford | 9332 | kitty.hand@example.net | (729)396-4354x3576 | (630)964-2426
col : last_name row 1 : Mertz
SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id
[ "Staff", "Lessons" ]
[ "{\"columns\":[\"staff_id\",\"staff_address_id\",\"nickname\",\"first_name\",\"middle_name\",\"last_name\",\"date_of_birth\",\"date_joined_staff\",\"date_left_staff\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,14,\"thompson.constantin\",\"Janessa\",\"Amara\",\"Sawayn\",\"2010-12-08 16:55:14\",\"2017-04-27 03:21:26\",\"2018-03-23 22:53:12\"],[2,3,\"santos45\",\"Camylle\",\"Icie\",\"Weissnat\",\"2015-08-01 13:22:43\",\"2016-06-06 08:54:28\",\"2018-03-10 15:25:00\"],[3,5,\"ynader\",\"Kaitlin\",\"Stephania\",\"Mertz\",\"1994-05-17 05:32:11\",\"2018-01-02 12:24:24\",\"2018-03-24 10:11:08\"],[4,1,\"lsenger\",\"Rebekah\",\"Sherwood\",\"Hermann\",\"2003-01-16 06:29:11\",\"2017-10-21 17:20:57\",\"2018-03-04 17:13:53\"],[5,14,\"ledner.jamie\",\"Jedidiah\",\"Dejon\",\"Herzog\",\"2015-08-10 11:37:39\",\"2016-05-16 20:56:53\",\"2018-03-08 04:23:14\"],[6,12,\"bogisich.geovany\",\"Eulalia\",\"Tre\",\"Maggio\",\"1998-04-27 12:55:05\",\"2017-08-27 19:19:44\",\"2018-02-28 08:26:10\"],[7,13,\"weldon.kling\",\"Queenie\",\"Madelyn\",\"Macejkovic\",\"2007-06-11 20:03:28\",\"2017-06-04 14:30:41\",\"2018-03-08 05:16:29\"],[8,1,\"gabe21\",\"Titus\",\"Duane\",\"Durgan\",\"2005-05-02 06:23:36\",\"2016-05-26 00:55:07\",\"2018-03-05 18:30:12\"],[9,4,\"ymiller\",\"Margie\",\"Caesar\",\"Doyle\",\"1995-06-03 08:09:17\",\"2017-12-22 03:06:32\",\"2018-03-08 12:31:16\"],[10,2,\"sbrown\",\"Jaleel\",\"Maiya\",\"Rogahn\",\"1996-09-24 09:51:42\",\"2016-06-05 22:22:23\",\"2018-03-14 07:14:37\"],[11,1,\"nicholaus92\",\"Winnifred\",\"Liam\",\"Jast\",\"2000-06-13 18:09:11\",\"2016-05-01 02:22:45\",\"2018-03-09 05:08:35\"],[12,7,\"edwin.hudson\",\"Lincoln\",\"Benny\",\"Carroll\",\"1996-03-09 08:19:49\",\"2016-11-05 01:43:52\",\"2018-03-06 23:17:41\"],[13,1,\"norma73\",\"Ernestina\",\"Clarabelle\",\"Mraz\",\"2004-05-19 14:11:13\",\"2016-11-13 20:44:23\",\"2018-02-26 17:56:31\"],[14,6,\"bkunze\",\"Ludie\",\"Ulices\",\"Kuphal\",\"2000-11-16 06:55:12\",\"2017-08-30 15:08:37\",\"2018-03-02 01:48:15\"],[15,3,\"weissnat.vincenzo\",\"Simeon\",\"Mayra\",\"Turner\",\"1997-03-29 10:55:45\",\"2017-02-20 18:45:20\",\"2018-03-01 17:10:03\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["first_name"],"index":[0,1,2,3,4,5],"data":[["Camylle"],["Ernestina"],["Eulalia"],["Jaleel"],["Margie"],["Queenie"]]}
SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id <table_name> : Staff col : staff_id | staff_address_id | nickname | first_name | middle_name | last_name | date_of_birth | date_joined_staff | date_left_staff row 1 : 1 | 14 | thompson.constantin | Janessa | Amara | Sawayn | 2010-12-08 16:55:14 | 2017-04-27 03:21:26 | 2018-03-23 22:53:12 row 2 : 2 | 3 | santos45 | Camylle | Icie | Weissnat | 2015-08-01 13:22:43 | 2016-06-06 08:54:28 | 2018-03-10 15:25:00 row 3 : 3 | 5 | ynader | Kaitlin | Stephania | Mertz | 1994-05-17 05:32:11 | 2018-01-02 12:24:24 | 2018-03-24 10:11:08 row 4 : 4 | 1 | lsenger | Rebekah | Sherwood | Hermann | 2003-01-16 06:29:11 | 2017-10-21 17:20:57 | 2018-03-04 17:13:53 row 5 : 5 | 14 | ledner.jamie | Jedidiah | Dejon | Herzog | 2015-08-10 11:37:39 | 2016-05-16 20:56:53 | 2018-03-08 04:23:14 row 6 : 6 | 12 | bogisich.geovany | Eulalia | Tre | Maggio | 1998-04-27 12:55:05 | 2017-08-27 19:19:44 | 2018-02-28 08:26:10 row 7 : 7 | 13 | weldon.kling | Queenie | Madelyn | Macejkovic | 2007-06-11 20:03:28 | 2017-06-04 14:30:41 | 2018-03-08 05:16:29 row 8 : 8 | 1 | gabe21 | Titus | Duane | Durgan | 2005-05-02 06:23:36 | 2016-05-26 00:55:07 | 2018-03-05 18:30:12 row 9 : 9 | 4 | ymiller | Margie | Caesar | Doyle | 1995-06-03 08:09:17 | 2017-12-22 03:06:32 | 2018-03-08 12:31:16 row 10 : 10 | 2 | sbrown | Jaleel | Maiya | Rogahn | 1996-09-24 09:51:42 | 2016-06-05 22:22:23 | 2018-03-14 07:14:37 row 11 : 11 | 1 | nicholaus92 | Winnifred | Liam | Jast | 2000-06-13 18:09:11 | 2016-05-01 02:22:45 | 2018-03-09 05:08:35 row 12 : 12 | 7 | edwin.hudson | Lincoln | Benny | Carroll | 1996-03-09 08:19:49 | 2016-11-05 01:43:52 | 2018-03-06 23:17:41 row 13 : 13 | 1 | norma73 | Ernestina | Clarabelle | Mraz | 2004-05-19 14:11:13 | 2016-11-13 20:44:23 | 2018-02-26 17:56:31 row 14 : 14 | 6 | bkunze | Ludie | Ulices | Kuphal | 2000-11-16 06:55:12 | 2017-08-30 15:08:37 | 2018-03-02 01:48:15 row 15 : 15 | 3 | weissnat.vincenzo | Simeon | Mayra | Turner | 1997-03-29 10:55:45 | 2017-02-20 18:45:20 | 2018-03-01 17:10:03 <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : first_name row 1 : Camylle row 2 : Ernestina row 3 : Eulalia row 4 : Jaleel row 5 : Margie row 6 : Queenie
SELECT T1.vehicle_id , T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1
[ "Vehicles", "Lessons" ]
[ "{\"columns\":[\"vehicle_id\",\"vehicle_details\"],\"index\":[0,1,2],\"data\":[[1,\"Van\"],[2,\"Truck\"],[3,\"Car\"]]}", "{\"columns\":[\"lesson_id\",\"customer_id\",\"lesson_status_code\",\"staff_id\",\"vehicle_id\",\"lesson_date\",\"lesson_time\",\"price\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],\"data\":[[1,6,\"Cancelled\",8,3,\"2018-02-28 10:55:36\",\"5\",199.0],[2,8,\"Cancelled\",14,3,\"2018-03-07 16:12:36\",\"6\",167.0],[3,6,\"Cancelled\",11,2,\"2018-03-03 15:10:16\",\"3\",352.0],[4,8,\"Completed\",1,2,\"2018-03-17 19:02:07\",\"9\",306.0],[5,10,\"Completed\",3,2,\"2018-03-12 00:41:59\",\"9\",295.0],[6,5,\"Completed\",4,2,\"2018-03-07 22:03:49\",\"6\",492.0],[7,9,\"Cancelled\",11,1,\"2018-03-08 16:05:05\",\"9\",231.0],[8,3,\"Completed\",8,2,\"2018-03-21 06:48:45\",\"2\",277.0],[9,2,\"Completed\",4,2,\"2018-03-05 20:05:33\",\"9\",456.0],[10,2,\"Cancelled\",5,2,\"2018-02-26 02:36:35\",\"4\",495.0],[11,10,\"Cancelled\",15,1,\"2018-03-04 06:55:46\",\"2\",223.0],[12,11,\"Cancelled\",12,2,\"2018-03-16 07:08:52\",\"2\",184.0],[13,13,\"Completed\",12,1,\"2018-03-05 18:05:31\",\"5\",446.0],[14,11,\"Cancelled\",11,1,\"2018-03-07 11:53:32\",\"5\",483.0],[15,3,\"Cancelled\",8,1,\"2018-03-06 21:48:51\",\"9\",340.0]]}" ]
{"columns":["vehicle_id","vehicle_details"],"index":[0],"data":[[2,"Truck"]]}
SELECT T1.vehicle_id , T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1 <table_name> : Vehicles col : vehicle_id | vehicle_details row 1 : 1 | Van row 2 : 2 | Truck row 3 : 3 | Car <table_name> : Lessons col : lesson_id | customer_id | lesson_status_code | staff_id | vehicle_id | lesson_date | lesson_time | price row 1 : 1 | 6 | Cancelled | 8 | 3 | 2018-02-28 10:55:36 | 5 | 199 row 2 : 2 | 8 | Cancelled | 14 | 3 | 2018-03-07 16:12:36 | 6 | 167 row 3 : 3 | 6 | Cancelled | 11 | 2 | 2018-03-03 15:10:16 | 3 | 352 row 4 : 4 | 8 | Completed | 1 | 2 | 2018-03-17 19:02:07 | 9 | 306 row 5 : 5 | 10 | Completed | 3 | 2 | 2018-03-12 00:41:59 | 9 | 295 row 6 : 6 | 5 | Completed | 4 | 2 | 2018-03-07 22:03:49 | 6 | 492 row 7 : 7 | 9 | Cancelled | 11 | 1 | 2018-03-08 16:05:05 | 9 | 231 row 8 : 8 | 3 | Completed | 8 | 2 | 2018-03-21 06:48:45 | 2 | 277 row 9 : 9 | 2 | Completed | 4 | 2 | 2018-03-05 20:05:33 | 9 | 456 row 10 : 10 | 2 | Cancelled | 5 | 2 | 2018-02-26 02:36:35 | 4 | 495 row 11 : 11 | 10 | Cancelled | 15 | 1 | 2018-03-04 06:55:46 | 2 | 223 row 12 : 12 | 11 | Cancelled | 12 | 2 | 2018-03-16 07:08:52 | 2 | 184 row 13 : 13 | 13 | Completed | 12 | 1 | 2018-03-05 18:05:31 | 5 | 446 row 14 : 14 | 11 | Cancelled | 11 | 1 | 2018-03-07 11:53:32 | 5 | 483 row 15 : 15 | 3 | Cancelled | 8 | 1 | 2018-03-06 21:48:51 | 9 | 340
col : vehicle_id | vehicle_details row 1 : 2 | Truck
SELECT count(*) FROM Faculty
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[58]]}
SELECT count(*) FROM Faculty <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : count(*) row 1 : 58
SELECT DISTINCT rank FROM Faculty
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Rank"],"index":[0,1,2,3],"data":[["Instructor"],["Professor"],["AssocProf"],["AsstProf"]]}
SELECT DISTINCT rank FROM Faculty <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Rank row 1 : Instructor row 2 : Professor row 3 : AssocProf row 4 : AsstProf
SELECT DISTINCT building FROM Faculty
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Building"],"index":[0,1,2],"data":[["NEB"],["Barton"],["Krieger"]]}
SELECT DISTINCT building FROM Faculty <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Building row 1 : NEB row 2 : Barton row 3 : Krieger
SELECT rank , Fname , Lname FROM Faculty
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Rank","Fname","Lname"],"index":[0,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],"data":[["Instructor","Mark","Giuliano"],["Professor","Michael","Goodrich"],["Professor","Gerald","Masson"],["AssocProf","Thordur","Runolfsson"],["Professor","Daniel","Naiman"],["Instructor","Stacey","Jones"],["Professor","Frederic","Davidson"],["Professor","William","Brody"],["Professor","Gerard","Meyer"],["AsstProf","David","Yarowsky"],["Professor","Edward","Scheinerman"],["AsstProf","Carey","Priebe"],["Professor","James","Fill"],["Professor","Alan","Goldman"],["AssocProf","Scott","Smith"],["Instructor","Joanne","Houlahan"],["Professor","Luigi","Burzio"],["AsstProf","Robert","Frank"],["Instructor","Louis","Beach"],["AsstProf","Cheng","Cheng"],["Professor","Alexander","Kaplan"],["Instructor","William","Byrne"],["Professor","Shih-Ping","Han"],["Professor","Paul","Smolensky"],["AsstProf","Pablo","Iglesias"],["Professor","John","Goutsias"],["Professor","Wilson","Rugh"],["Professor","Frederick","Jelinek"],["Professor","Charles","Westgate"],["Professor","Baruch","Awerbuch"],["Professor","Russell","Taylor"],["AsstProf","Eric","Brill"],["AsstProf","Lancelot","James"],["Instructor","Ellie","Angelopoulou"],["Professor","Howard","Weinert"],["Professor","John","Wierman"],["AsstProf","Subodh","Kumar"],["AssocProf","Lawrence","Wolff"],["AsstProf","Gert","Cauwenberghs"],["Professor","Andreas","Andreou"],["AssocProf","Steven","Salzberg"],["AsstProf","Lenore","Cowen"],["Professor","Michael","McCloskey"],["AsstProf","Yair","Amir"],["AsstProf","Michael","Brent"],["AsstProf","Brenda","Rapp"],["Professor","Rao","Kosaraju"],["AssocProf","Oliver","Collins"],["AssocProf","Brian","Hughes"],["Professor","Richard","Joseph"],["Professor","Jacob","Khurgin"],["AssocProf","Jerry","Prince"],["AssocProf","Geraldine","Legendre"],["AsstProf","Colin","Wu"],["Professor","Jong-Shi","Pang"],["Instructor","Robert","Glaser"],["Instructor","Arthur","Delcher"],["AsstProf","Leslie","Hall"]]}
SELECT rank , Fname , Lname FROM Faculty <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Rank | Fname | Lname row 1 : Instructor | Mark | Giuliano row 2 : Professor | Michael | Goodrich row 3 : Professor | Gerald | Masson row 4 : AssocProf | Thordur | Runolfsson row 5 : Professor | Daniel | Naiman row 6 : Instructor | Stacey | Jones row 7 : Professor | Frederic | Davidson row 8 : Professor | William | Brody row 9 : Professor | Gerard | Meyer row 10 : AsstProf | David | Yarowsky row 11 : Professor | Edward | Scheinerman row 12 : AsstProf | Carey | Priebe row 13 : Professor | James | Fill row 14 : Professor | Alan | Goldman row 15 : AssocProf | Scott | Smith row 16 : Instructor | Joanne | Houlahan row 17 : Professor | Luigi | Burzio row 18 : AsstProf | Robert | Frank row 19 : Instructor | Louis | Beach row 20 : AsstProf | Cheng | Cheng row 21 : Professor | Alexander | Kaplan row 22 : Instructor | William | Byrne row 23 : Professor | Shih-Ping | Han row 24 : Professor | Paul | Smolensky row 25 : AsstProf | Pablo | Iglesias row 26 : Professor | John | Goutsias row 27 : Professor | Wilson | Rugh row 28 : Professor | Frederick | Jelinek row 29 : Professor | Charles | Westgate row 30 : Professor | Baruch | Awerbuch row 31 : Professor | Russell | Taylor row 32 : AsstProf | Eric | Brill row 33 : AsstProf | Lancelot | James row 34 : Instructor | Ellie | Angelopoulou row 35 : Professor | Howard | Weinert row 36 : Professor | John | Wierman row 37 : AsstProf | Subodh | Kumar row 38 : AssocProf | Lawrence | Wolff row 39 : AsstProf | Gert | Cauwenberghs row 40 : Professor | Andreas | Andreou row 41 : AssocProf | Steven | Salzberg row 42 : AsstProf | Lenore | Cowen row 43 : Professor | Michael | McCloskey row 44 : AsstProf | Yair | Amir row 45 : AsstProf | Michael | Brent row 46 : AsstProf | Brenda | Rapp row 47 : Professor | Rao | Kosaraju row 48 : AssocProf | Oliver | Collins row 49 : AssocProf | Brian | Hughes row 50 : Professor | Richard | Joseph row 51 : Professor | Jacob | Khurgin row 52 : AssocProf | Jerry | Prince row 53 : AssocProf | Geraldine | Legendre row 54 : AsstProf | Colin | Wu row 55 : Professor | Jong-Shi | Pang row 56 : Instructor | Robert | Glaser row 57 : Instructor | Arthur | Delcher row 58 : AsstProf | Leslie | Hall
SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Fname","Lname","Phone"],"index":[0,1,2,3,4,5,6],"data":[["Stacey","Jones",3550],["Joanne","Houlahan",1260],["Ellie","Angelopoulou",2152],["Lenore","Cowen",2870],["Brenda","Rapp",2032],["Geraldine","Legendre",8972],["Leslie","Hall",7332]]}
SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F' <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Fname | Lname | Phone row 1 : Stacey | Jones | 3550 row 2 : Joanne | Houlahan | 1260 row 3 : Ellie | Angelopoulou | 2152 row 4 : Lenore | Cowen | 2870 row 5 : Brenda | Rapp | 2032 row 6 : Geraldine | Legendre | 8972 row 7 : Leslie | Hall | 7332
SELECT FacID FROM Faculty WHERE Sex = 'M'
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["FacID"],"index":[0,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],"data":[[1082],[1121],[1148],[1172],[1177],[1823],[2028],[2119],[2192],[2291],[2311],[2738],[2881],[3457],[4432],[5718],[6112],[6182],[6191],[6330],[6541],[6910],[6925],[7134],[7231],[7271],[7506],[7712],[7723],[7792],[8102],[8118],[8122],[8423],[8721],[8722],[8723],[8741],[8791],[8918],[8989],[9172],[9191],[9199],[9210],[9379],[9514],[9811],[9823],[9824],[9826]]}
SELECT FacID FROM Faculty WHERE Sex = 'M' <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : FacID row 1 : 1082 row 2 : 1121 row 3 : 1148 row 4 : 1172 row 5 : 1177 row 6 : 1823 row 7 : 2028 row 8 : 2119 row 9 : 2192 row 10 : 2291 row 11 : 2311 row 12 : 2738 row 13 : 2881 row 14 : 3457 row 15 : 4432 row 16 : 5718 row 17 : 6112 row 18 : 6182 row 19 : 6191 row 20 : 6330 row 21 : 6541 row 22 : 6910 row 23 : 6925 row 24 : 7134 row 25 : 7231 row 26 : 7271 row 27 : 7506 row 28 : 7712 row 29 : 7723 row 30 : 7792 row 31 : 8102 row 32 : 8118 row 33 : 8122 row 34 : 8423 row 35 : 8721 row 36 : 8722 row 37 : 8723 row 38 : 8741 row 39 : 8791 row 40 : 8918 row 41 : 8989 row 42 : 9172 row 43 : 9191 row 44 : 9199 row 45 : 9210 row 46 : 9379 row 47 : 9514 row 48 : 9811 row 49 : 9823 row 50 : 9824 row 51 : 9826
SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor"
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[0]]}
SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor" <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : count(*) row 1 : 0
SELECT phone , room , building FROM Faculty WHERE Fname = "Jerry" AND Lname = "Prince"
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Phone","Room","Building"],"index":[0],"data":[[5106,"119","Barton"]]}
SELECT phone , room , building FROM Faculty WHERE Fname = "Jerry" AND Lname = "Prince" <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Phone | Room | Building row 1 : 5106 | 119 | Barton
SELECT count(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB"
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[5]]}
SELECT count(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB" <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : count(*) row 1 : 5
SELECT fname , lname FROM Faculty WHERE Rank = "Instructor"
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Fname","Lname"],"index":[0,1,2,3,4,5,6,7],"data":[["Mark","Giuliano"],["Stacey","Jones"],["Joanne","Houlahan"],["Louis","Beach"],["William","Byrne"],["Ellie","Angelopoulou"],["Robert","Glaser"],["Arthur","Delcher"]]}
SELECT fname , lname FROM Faculty WHERE Rank = "Instructor" <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Fname | Lname row 1 : Mark | Giuliano row 2 : Stacey | Jones row 3 : Joanne | Houlahan row 4 : Louis | Beach row 5 : William | Byrne row 6 : Ellie | Angelopoulou row 7 : Robert | Glaser row 8 : Arthur | Delcher
SELECT building , count(*) FROM Faculty GROUP BY building
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Building","count(*)"],"index":[0,1,2],"data":[["Barton",20],["Krieger",20],["NEB",18]]}
SELECT building , count(*) FROM Faculty GROUP BY building <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Building | count(*) row 1 : Barton | 20 row 2 : Krieger | 20 row 3 : NEB | 18
SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Building"],"index":[0],"data":[["Barton"]]}
SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1 <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Building row 1 : Barton
SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING count(*) >= 10
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Building"],"index":[0,1],"data":[["Barton"],["Krieger"]]}
SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING count(*) >= 10 <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Building row 1 : Barton row 2 : Krieger
SELECT rank , count(*) FROM Faculty GROUP BY rank
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Rank","count(*)"],"index":[0,1,2,3],"data":[["AssocProf",8],["AsstProf",15],["Instructor",8],["Professor",27]]}
SELECT rank , count(*) FROM Faculty GROUP BY rank <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Rank | count(*) row 1 : AssocProf | 8 row 2 : AsstProf | 15 row 3 : Instructor | 8 row 4 : Professor | 27
SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Rank","Sex","count(*)"],"index":[0,1,2,3,4,5,6],"data":[["AssocProf","F",1],["AssocProf","M",7],["AsstProf","F",3],["AsstProf","M",12],["Instructor","F",3],["Instructor","M",5],["Professor","M",27]]}
SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Rank | Sex | count(*) row 1 : AssocProf | F | 1 row 2 : AssocProf | M | 7 row 3 : AsstProf | F | 3 row 4 : AsstProf | M | 12 row 5 : Instructor | F | 3 row 6 : Instructor | M | 5 row 7 : Professor | M | 27
SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Rank"],"index":[0],"data":[["AssocProf"]]}
SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1 <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Rank row 1 : AssocProf
SELECT sex , count(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex
[ "Faculty" ]
[ "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Sex","count(*)"],"index":[0,1],"data":[["F",3],["M",12]]}
SELECT sex , count(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Sex | count(*) row 1 : F | 3 row 2 : M | 12
SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = "Linda" AND T2.lname = "Smith"
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Fname","Lname"],"index":[0],"data":[["Michael","Goodrich"]]}
SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = "Linda" AND T2.lname = "Smith" <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Fname | Lname row 1 : Michael | Goodrich
SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor"
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["StuID"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"data":[[1001],[1002],[1005],[1006],[1008],[1011],[1012],[1017],[1018],[1020],[1024],[1025],[1026],[1027]]}
SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor" <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : StuID row 1 : 1001 row 2 : 1002 row 3 : 1005 row 4 : 1006 row 5 : 1008 row 6 : 1011 row 7 : 1012 row 8 : 1017 row 9 : 1018 row 10 : 1020 row 11 : 1024 row 12 : 1025 row 13 : 1026 row 14 : 1027
SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich"
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Fname","LName"],"index":[0,1,2],"data":[["Linda","Smith"],["Paul","Gompers"],["Michael","Leighton"]]}
SELECT T2.fname , T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich" <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Fname | LName row 1 : Linda | Smith row 2 : Paul | Gompers row 3 : Michael | Leighton
SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["FacID","count(*)"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"data":[[1121,3],[1148,3],[2192,4],[2311,3],[5718,2],[7134,2],[7271,2],[7712,1],[7723,1],[7792,1],[8423,1],[8721,1],[8722,3],[8723,1],[8741,1],[8772,3],[8918,1],[9172,1]]}
SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : FacID | count(*) row 1 : 1121 | 3 row 2 : 1148 | 3 row 3 : 2192 | 4 row 4 : 2311 | 3 row 5 : 5718 | 2 row 6 : 7134 | 2 row 7 : 7271 | 2 row 8 : 7712 | 1 row 9 : 7723 | 1 row 10 : 7792 | 1 row 11 : 8423 | 1 row 12 : 8721 | 1 row 13 : 8722 | 3 row 14 : 8723 | 1 row 15 : 8741 | 1 row 16 : 8772 | 3 row 17 : 8918 | 1 row 18 : 9172 | 1
SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Rank","count(*)"],"index":[0,1,2],"data":[["AssocProf",2],["AsstProf",18],["Professor",14]]}
SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Rank | count(*) row 1 : AssocProf | 2 row 2 : AsstProf | 18 row 3 : Professor | 14
SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Fname","Lname"],"index":[0],"data":[["David","Yarowsky"]]}
SELECT T1.fname , T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1 <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Fname | Lname row 1 : David | Yarowsky
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["FacID"],"index":[0,1,2,3,4,5,6,7,8],"data":[[1121],[1148],[2192],[2311],[5718],[7134],[7271],[8722],[8772]]}
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2 <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : FacID row 1 : 1121 row 2 : 1148 row 3 : 2192 row 4 : 2311 row 5 : 5718 row 6 : 7134 row 7 : 7271 row 8 : 8722 row 9 : 8772
SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student
[ "Student", "Faculty" ]
[ "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["FacID"],"index":[0,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],"data":[[1082],[1172],[1177],[1193],[1823],[2028],[2119],[2291],[2738],[2881],[3457],[4230],[4432],[6112],[6182],[6191],[6330],[6541],[6910],[6925],[7231],[7506],[8102],[8114],[8118],[8122],[8791],[8989],[9011],[9191],[9199],[9210],[9379],[9514],[9643],[9811],[9823],[9824],[9826],[9922]]}
SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : FacID row 1 : 1082 row 2 : 1172 row 3 : 1177 row 4 : 1193 row 5 : 1823 row 6 : 2028 row 7 : 2119 row 8 : 2291 row 9 : 2738 row 10 : 2881 row 11 : 3457 row 12 : 4230 row 13 : 4432 row 14 : 6112 row 15 : 6182 row 16 : 6191 row 17 : 6330 row 18 : 6541 row 19 : 6910 row 20 : 6925 row 21 : 7231 row 22 : 7506 row 23 : 8102 row 24 : 8114 row 25 : 8118 row 26 : 8122 row 27 : 8791 row 28 : 8989 row 29 : 9011 row 30 : 9191 row 31 : 9199 row 32 : 9210 row 33 : 9379 row 34 : 9514 row 35 : 9643 row 36 : 9811 row 37 : 9823 row 38 : 9824 row 39 : 9826 row 40 : 9922
SELECT activity_name FROM Activity
[ "Activity" ]
[ "{\"columns\":[\"actid\",\"activity_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],\"data\":[[770,\"Mountain Climbing\"],[771,\"Canoeing\"],[772,\"Kayaking\"],[773,\"Spelunking\"],[776,\"Extreme Canasta\"],[777,\"Soccer\"],[778,\"Baseball\"],[779,\"Accordion Ensemble\"],[780,\"Football\"],[782,\"Volleyball\"],[784,\"Canasta\"],[785,\"Chess\"],[790,\"Crossword Puzzles\"],[791,\"Proselytizing\"],[796,\"Square Dancing\"],[799,\"Bungee Jumping\"]]}" ]
{"columns":["activity_name"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"data":[["Mountain Climbing"],["Canoeing"],["Kayaking"],["Spelunking"],["Extreme Canasta"],["Soccer"],["Baseball"],["Accordion Ensemble"],["Football"],["Volleyball"],["Canasta"],["Chess"],["Crossword Puzzles"],["Proselytizing"],["Square Dancing"],["Bungee Jumping"]]}
SELECT activity_name FROM Activity <table_name> : Activity col : actid | activity_name row 1 : 770 | Mountain Climbing row 2 : 771 | Canoeing row 3 : 772 | Kayaking row 4 : 773 | Spelunking row 5 : 776 | Extreme Canasta row 6 : 777 | Soccer row 7 : 778 | Baseball row 8 : 779 | Accordion Ensemble row 9 : 780 | Football row 10 : 782 | Volleyball row 11 : 784 | Canasta row 12 : 785 | Chess row 13 : 790 | Crossword Puzzles row 14 : 791 | Proselytizing row 15 : 796 | Square Dancing row 16 : 799 | Bungee Jumping
col : activity_name row 1 : Mountain Climbing row 2 : Canoeing row 3 : Kayaking row 4 : Spelunking row 5 : Extreme Canasta row 6 : Soccer row 7 : Baseball row 8 : Accordion Ensemble row 9 : Football row 10 : Volleyball row 11 : Canasta row 12 : Chess row 13 : Crossword Puzzles row 14 : Proselytizing row 15 : Square Dancing row 16 : Bungee Jumping
SELECT count(*) FROM Activity
[ "Activity" ]
[ "{\"columns\":[\"actid\",\"activity_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],\"data\":[[770,\"Mountain Climbing\"],[771,\"Canoeing\"],[772,\"Kayaking\"],[773,\"Spelunking\"],[776,\"Extreme Canasta\"],[777,\"Soccer\"],[778,\"Baseball\"],[779,\"Accordion Ensemble\"],[780,\"Football\"],[782,\"Volleyball\"],[784,\"Canasta\"],[785,\"Chess\"],[790,\"Crossword Puzzles\"],[791,\"Proselytizing\"],[796,\"Square Dancing\"],[799,\"Bungee Jumping\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[16]]}
SELECT count(*) FROM Activity <table_name> : Activity col : actid | activity_name row 1 : 770 | Mountain Climbing row 2 : 771 | Canoeing row 3 : 772 | Kayaking row 4 : 773 | Spelunking row 5 : 776 | Extreme Canasta row 6 : 777 | Soccer row 7 : 778 | Baseball row 8 : 779 | Accordion Ensemble row 9 : 780 | Football row 10 : 782 | Volleyball row 11 : 784 | Canasta row 12 : 785 | Chess row 13 : 790 | Crossword Puzzles row 14 : 791 | Proselytizing row 15 : 796 | Square Dancing row 16 : 799 | Bungee Jumping
col : count(*) row 1 : 16
SELECT count(DISTINCT FacID) FROM Faculty_participates_in
[ "Faculty_Participates_in" ]
[ "{\"columns\":[\"FacID\",\"actid\"],\"index\":[0,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],\"data\":[[1082,784],[1082,785],[1082,790],[1121,771],[1121,777],[1121,770],[1193,790],[1193,796],[1193,773],[2192,773],[2192,790],[2192,778],[3457,782],[3457,771],[3457,784],[4230,790],[4230,785],[6112,785],[6112,772],[7723,785],[7723,770],[8114,776],[8721,770],[8721,780],[8741,780],[8741,790],[8918,780],[8918,782],[8918,771],[2881,790],[2881,784],[4432,770],[4432,771],[5718,776],[6182,776],[6182,785],[1177,790],[1177,770],[1177,770],[9922,796]]}" ]
{"columns":["count(DISTINCT FacID)"],"index":[0],"data":[[18]]}
SELECT count(DISTINCT FacID) FROM Faculty_participates_in <table_name> : Faculty_Participates_in col : FacID | actid row 1 : 1082 | 784 row 2 : 1082 | 785 row 3 : 1082 | 790 row 4 : 1121 | 771 row 5 : 1121 | 777 row 6 : 1121 | 770 row 7 : 1193 | 790 row 8 : 1193 | 796 row 9 : 1193 | 773 row 10 : 2192 | 773 row 11 : 2192 | 790 row 12 : 2192 | 778 row 13 : 3457 | 782 row 14 : 3457 | 771 row 15 : 3457 | 784 row 16 : 4230 | 790 row 17 : 4230 | 785 row 18 : 6112 | 785 row 19 : 6112 | 772 row 20 : 7723 | 785 row 21 : 7723 | 770 row 22 : 8114 | 776 row 23 : 8721 | 770 row 24 : 8721 | 780 row 25 : 8741 | 780 row 26 : 8741 | 790 row 27 : 8918 | 780 row 28 : 8918 | 782 row 29 : 8918 | 771 row 30 : 2881 | 790 row 31 : 2881 | 784 row 32 : 4432 | 770 row 33 : 4432 | 771 row 34 : 5718 | 776 row 35 : 6182 | 776 row 36 : 6182 | 785 row 37 : 1177 | 790 row 38 : 1177 | 770 row 39 : 1177 | 770 row 40 : 9922 | 796
col : count(DISTINCT FacID) row 1 : 18
SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
[ "Faculty_Participates_in", "Faculty" ]
[ "{\"columns\":[\"FacID\",\"actid\"],\"index\":[0,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],\"data\":[[1082,784],[1082,785],[1082,790],[1121,771],[1121,777],[1121,770],[1193,790],[1193,796],[1193,773],[2192,773],[2192,790],[2192,778],[3457,782],[3457,771],[3457,784],[4230,790],[4230,785],[6112,785],[6112,772],[7723,785],[7723,770],[8114,776],[8721,770],[8721,780],[8741,780],[8741,790],[8918,780],[8918,782],[8918,771],[2881,790],[2881,784],[4432,770],[4432,771],[5718,776],[6182,776],[6182,785],[1177,790],[1177,770],[1177,770],[9922,796]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["FacID"],"index":[0,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],"data":[[1148],[1172],[1823],[2028],[2119],[2291],[2311],[2738],[6191],[6330],[6541],[6910],[6925],[7134],[7231],[7271],[7506],[7712],[7792],[8102],[8118],[8122],[8423],[8722],[8723],[8772],[8791],[8989],[9011],[9172],[9191],[9199],[9210],[9379],[9514],[9643],[9811],[9823],[9824],[9826]]}
SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in <table_name> : Faculty_Participates_in col : FacID | actid row 1 : 1082 | 784 row 2 : 1082 | 785 row 3 : 1082 | 790 row 4 : 1121 | 771 row 5 : 1121 | 777 row 6 : 1121 | 770 row 7 : 1193 | 790 row 8 : 1193 | 796 row 9 : 1193 | 773 row 10 : 2192 | 773 row 11 : 2192 | 790 row 12 : 2192 | 778 row 13 : 3457 | 782 row 14 : 3457 | 771 row 15 : 3457 | 784 row 16 : 4230 | 790 row 17 : 4230 | 785 row 18 : 6112 | 785 row 19 : 6112 | 772 row 20 : 7723 | 785 row 21 : 7723 | 770 row 22 : 8114 | 776 row 23 : 8721 | 770 row 24 : 8721 | 780 row 25 : 8741 | 780 row 26 : 8741 | 790 row 27 : 8918 | 780 row 28 : 8918 | 782 row 29 : 8918 | 771 row 30 : 2881 | 790 row 31 : 2881 | 784 row 32 : 4432 | 770 row 33 : 4432 | 771 row 34 : 5718 | 776 row 35 : 6182 | 776 row 36 : 6182 | 785 row 37 : 1177 | 790 row 38 : 1177 | 770 row 39 : 1177 | 770 row 40 : 9922 | 796 <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : FacID row 1 : 1148 row 2 : 1172 row 3 : 1823 row 4 : 2028 row 5 : 2119 row 6 : 2291 row 7 : 2311 row 8 : 2738 row 9 : 6191 row 10 : 6330 row 11 : 6541 row 12 : 6910 row 13 : 6925 row 14 : 7134 row 15 : 7231 row 16 : 7271 row 17 : 7506 row 18 : 7712 row 19 : 7792 row 20 : 8102 row 21 : 8118 row 22 : 8122 row 23 : 8423 row 24 : 8722 row 25 : 8723 row 26 : 8772 row 27 : 8791 row 28 : 8989 row 29 : 9011 row 30 : 9172 row 31 : 9191 row 32 : 9199 row 33 : 9210 row 34 : 9379 row 35 : 9514 row 36 : 9643 row 37 : 9811 row 38 : 9823 row 39 : 9824 row 40 : 9826
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
[ "Faculty_Participates_in", "Student" ]
[ "{\"columns\":[\"FacID\",\"actid\"],\"index\":[0,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],\"data\":[[1082,784],[1082,785],[1082,790],[1121,771],[1121,777],[1121,770],[1193,790],[1193,796],[1193,773],[2192,773],[2192,790],[2192,778],[3457,782],[3457,771],[3457,784],[4230,790],[4230,785],[6112,785],[6112,772],[7723,785],[7723,770],[8114,776],[8721,770],[8721,780],[8741,780],[8741,790],[8918,780],[8918,782],[8918,771],[2881,790],[2881,784],[4432,770],[4432,771],[5718,776],[6182,776],[6182,785],[1177,790],[1177,770],[1177,770],[9922,796]]}", "{\"columns\":[\"StuID\",\"LName\",\"Fname\",\"Age\",\"Sex\",\"Major\",\"Advisor\",\"city_code\"],\"index\":[0,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],\"data\":[[1001,\"Smith\",\"Linda\",18,\"F\",600,1121,\"BAL\"],[1002,\"Kim\",\"Tracy\",19,\"F\",600,7712,\"HKG\"],[1003,\"Jones\",\"Shiela\",21,\"F\",600,7792,\"WAS\"],[1004,\"Kumar\",\"Dinesh\",20,\"M\",600,8423,\"CHI\"],[1005,\"Gompers\",\"Paul\",26,\"M\",600,1121,\"YYZ\"],[1006,\"Schultz\",\"Andy\",18,\"M\",600,1148,\"BAL\"],[1007,\"Apap\",\"Lisa\",18,\"F\",600,8918,\"PIT\"],[1008,\"Nelson\",\"Jandy\",20,\"F\",600,9172,\"BAL\"],[1009,\"Tai\",\"Eric\",19,\"M\",600,2192,\"YYZ\"],[1010,\"Lee\",\"Derek\",17,\"M\",600,2192,\"HOU\"],[1011,\"Adams\",\"David\",22,\"M\",600,1148,\"PHL\"],[1012,\"Davis\",\"Steven\",20,\"M\",600,7723,\"PIT\"],[1014,\"Norris\",\"Charles\",18,\"M\",600,8741,\"DAL\"],[1015,\"Lee\",\"Susan\",16,\"F\",600,8721,\"HKG\"],[1016,\"Schwartz\",\"Mark\",17,\"M\",600,2192,\"DET\"],[1017,\"Wilson\",\"Bruce\",27,\"M\",600,1148,\"LON\"],[1018,\"Leighton\",\"Michael\",20,\"M\",600,1121,\"PIT\"],[1019,\"Pang\",\"Arthur\",18,\"M\",600,2192,\"WAS\"],[1020,\"Thornton\",\"Ian\",22,\"M\",520,7271,\"NYC\"],[1021,\"Andreou\",\"George\",19,\"M\",520,8722,\"NYC\"],[1022,\"Woods\",\"Michael\",17,\"M\",540,8722,\"PHL\"],[1023,\"Shieber\",\"David\",20,\"M\",520,8722,\"NYC\"],[1024,\"Prater\",\"Stacy\",18,\"F\",540,7271,\"BAL\"],[1025,\"Goldman\",\"Mark\",18,\"M\",520,7134,\"PIT\"],[1026,\"Pang\",\"Eric\",19,\"M\",520,7134,\"HKG\"],[1027,\"Brody\",\"Paul\",18,\"M\",520,8723,\"LOS\"],[1028,\"Rugh\",\"Eric\",20,\"M\",550,2311,\"ROC\"],[1029,\"Han\",\"Jun\",17,\"M\",100,2311,\"PEK\"],[1030,\"Cheng\",\"Lisa\",21,\"F\",550,2311,\"SFO\"],[1031,\"Smith\",\"Sarah\",20,\"F\",550,8772,\"PHL\"],[1032,\"Brown\",\"Eric\",20,\"M\",550,8772,\"ATL\"],[1033,\"Simms\",\"William\",18,\"M\",550,8772,\"NAR\"],[1034,\"Epp\",\"Eric\",18,\"M\",50,5718,\"BOS\"],[1035,\"Schmidt\",\"Sarah\",26,\"F\",50,5718,\"WAS\"]]}" ]
{"columns":["FacID"],"index":[0,1,2,3,4,5,6],"data":[[1121],[2192],[5718],[7723],[8721],[8741],[8918]]}
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student <table_name> : Faculty_Participates_in col : FacID | actid row 1 : 1082 | 784 row 2 : 1082 | 785 row 3 : 1082 | 790 row 4 : 1121 | 771 row 5 : 1121 | 777 row 6 : 1121 | 770 row 7 : 1193 | 790 row 8 : 1193 | 796 row 9 : 1193 | 773 row 10 : 2192 | 773 row 11 : 2192 | 790 row 12 : 2192 | 778 row 13 : 3457 | 782 row 14 : 3457 | 771 row 15 : 3457 | 784 row 16 : 4230 | 790 row 17 : 4230 | 785 row 18 : 6112 | 785 row 19 : 6112 | 772 row 20 : 7723 | 785 row 21 : 7723 | 770 row 22 : 8114 | 776 row 23 : 8721 | 770 row 24 : 8721 | 780 row 25 : 8741 | 780 row 26 : 8741 | 790 row 27 : 8918 | 780 row 28 : 8918 | 782 row 29 : 8918 | 771 row 30 : 2881 | 790 row 31 : 2881 | 784 row 32 : 4432 | 770 row 33 : 4432 | 771 row 34 : 5718 | 776 row 35 : 6182 | 776 row 36 : 6182 | 785 row 37 : 1177 | 790 row 38 : 1177 | 770 row 39 : 1177 | 770 row 40 : 9922 | 796 <table_name> : Student col : StuID | LName | Fname | Age | Sex | Major | Advisor | city_code row 1 : 1001 | Smith | Linda | 18 | F | 600 | 1121 | BAL row 2 : 1002 | Kim | Tracy | 19 | F | 600 | 7712 | HKG row 3 : 1003 | Jones | Shiela | 21 | F | 600 | 7792 | WAS row 4 : 1004 | Kumar | Dinesh | 20 | M | 600 | 8423 | CHI row 5 : 1005 | Gompers | Paul | 26 | M | 600 | 1121 | YYZ row 6 : 1006 | Schultz | Andy | 18 | M | 600 | 1148 | BAL row 7 : 1007 | Apap | Lisa | 18 | F | 600 | 8918 | PIT row 8 : 1008 | Nelson | Jandy | 20 | F | 600 | 9172 | BAL row 9 : 1009 | Tai | Eric | 19 | M | 600 | 2192 | YYZ row 10 : 1010 | Lee | Derek | 17 | M | 600 | 2192 | HOU row 11 : 1011 | Adams | David | 22 | M | 600 | 1148 | PHL row 12 : 1012 | Davis | Steven | 20 | M | 600 | 7723 | PIT row 13 : 1014 | Norris | Charles | 18 | M | 600 | 8741 | DAL row 14 : 1015 | Lee | Susan | 16 | F | 600 | 8721 | HKG row 15 : 1016 | Schwartz | Mark | 17 | M | 600 | 2192 | DET row 16 : 1017 | Wilson | Bruce | 27 | M | 600 | 1148 | LON row 17 : 1018 | Leighton | Michael | 20 | M | 600 | 1121 | PIT row 18 : 1019 | Pang | Arthur | 18 | M | 600 | 2192 | WAS row 19 : 1020 | Thornton | Ian | 22 | M | 520 | 7271 | NYC row 20 : 1021 | Andreou | George | 19 | M | 520 | 8722 | NYC row 21 : 1022 | Woods | Michael | 17 | M | 540 | 8722 | PHL row 22 : 1023 | Shieber | David | 20 | M | 520 | 8722 | NYC row 23 : 1024 | Prater | Stacy | 18 | F | 540 | 7271 | BAL row 24 : 1025 | Goldman | Mark | 18 | M | 520 | 7134 | PIT row 25 : 1026 | Pang | Eric | 19 | M | 520 | 7134 | HKG row 26 : 1027 | Brody | Paul | 18 | M | 520 | 8723 | LOS row 27 : 1028 | Rugh | Eric | 20 | M | 550 | 2311 | ROC row 28 : 1029 | Han | Jun | 17 | M | 100 | 2311 | PEK row 29 : 1030 | Cheng | Lisa | 21 | F | 550 | 2311 | SFO row 30 : 1031 | Smith | Sarah | 20 | F | 550 | 8772 | PHL row 31 : 1032 | Brown | Eric | 20 | M | 550 | 8772 | ATL row 32 : 1033 | Simms | William | 18 | M | 550 | 8772 | NAR row 33 : 1034 | Epp | Eric | 18 | M | 50 | 5718 | BOS row 34 : 1035 | Schmidt | Sarah | 26 | F | 50 | 5718 | WAS
col : FacID row 1 : 1121 row 2 : 2192 row 3 : 5718 row 4 : 7723 row 5 : 8721 row 6 : 8741 row 7 : 8918
SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = "Mark" AND T1.lname = "Giuliano"
[ "Faculty_Participates_in", "Faculty" ]
[ "{\"columns\":[\"FacID\",\"actid\"],\"index\":[0,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],\"data\":[[1082,784],[1082,785],[1082,790],[1121,771],[1121,777],[1121,770],[1193,790],[1193,796],[1193,773],[2192,773],[2192,790],[2192,778],[3457,782],[3457,771],[3457,784],[4230,790],[4230,785],[6112,785],[6112,772],[7723,785],[7723,770],[8114,776],[8721,770],[8721,780],[8741,780],[8741,790],[8918,780],[8918,782],[8918,771],[2881,790],[2881,784],[4432,770],[4432,771],[5718,776],[6182,776],[6182,785],[1177,790],[1177,770],[1177,770],[9922,796]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["count(*)"],"index":[0],"data":[[3]]}
SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID WHERE T1.fname = "Mark" AND T1.lname = "Giuliano" <table_name> : Faculty_Participates_in col : FacID | actid row 1 : 1082 | 784 row 2 : 1082 | 785 row 3 : 1082 | 790 row 4 : 1121 | 771 row 5 : 1121 | 777 row 6 : 1121 | 770 row 7 : 1193 | 790 row 8 : 1193 | 796 row 9 : 1193 | 773 row 10 : 2192 | 773 row 11 : 2192 | 790 row 12 : 2192 | 778 row 13 : 3457 | 782 row 14 : 3457 | 771 row 15 : 3457 | 784 row 16 : 4230 | 790 row 17 : 4230 | 785 row 18 : 6112 | 785 row 19 : 6112 | 772 row 20 : 7723 | 785 row 21 : 7723 | 770 row 22 : 8114 | 776 row 23 : 8721 | 770 row 24 : 8721 | 780 row 25 : 8741 | 780 row 26 : 8741 | 790 row 27 : 8918 | 780 row 28 : 8918 | 782 row 29 : 8918 | 771 row 30 : 2881 | 790 row 31 : 2881 | 784 row 32 : 4432 | 770 row 33 : 4432 | 771 row 34 : 5718 | 776 row 35 : 6182 | 776 row 36 : 6182 | 785 row 37 : 1177 | 790 row 38 : 1177 | 770 row 39 : 1177 | 770 row 40 : 9922 | 796 <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : count(*) row 1 : 3
SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = "Mark" AND T1.lname = "Giuliano"
[ "Activity", "Faculty_Participates_in", "Faculty" ]
[ "{\"columns\":[\"actid\",\"activity_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],\"data\":[[770,\"Mountain Climbing\"],[771,\"Canoeing\"],[772,\"Kayaking\"],[773,\"Spelunking\"],[776,\"Extreme Canasta\"],[777,\"Soccer\"],[778,\"Baseball\"],[779,\"Accordion Ensemble\"],[780,\"Football\"],[782,\"Volleyball\"],[784,\"Canasta\"],[785,\"Chess\"],[790,\"Crossword Puzzles\"],[791,\"Proselytizing\"],[796,\"Square Dancing\"],[799,\"Bungee Jumping\"]]}", "{\"columns\":[\"FacID\",\"actid\"],\"index\":[0,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],\"data\":[[1082,784],[1082,785],[1082,790],[1121,771],[1121,777],[1121,770],[1193,790],[1193,796],[1193,773],[2192,773],[2192,790],[2192,778],[3457,782],[3457,771],[3457,784],[4230,790],[4230,785],[6112,785],[6112,772],[7723,785],[7723,770],[8114,776],[8721,770],[8721,780],[8741,780],[8741,790],[8918,780],[8918,782],[8918,771],[2881,790],[2881,784],[4432,770],[4432,771],[5718,776],[6182,776],[6182,785],[1177,790],[1177,770],[1177,770],[9922,796]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["activity_name"],"index":[0,1,2],"data":[["Canasta"],["Chess"],["Crossword Puzzles"]]}
SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = "Mark" AND T1.lname = "Giuliano" <table_name> : Activity col : actid | activity_name row 1 : 770 | Mountain Climbing row 2 : 771 | Canoeing row 3 : 772 | Kayaking row 4 : 773 | Spelunking row 5 : 776 | Extreme Canasta row 6 : 777 | Soccer row 7 : 778 | Baseball row 8 : 779 | Accordion Ensemble row 9 : 780 | Football row 10 : 782 | Volleyball row 11 : 784 | Canasta row 12 : 785 | Chess row 13 : 790 | Crossword Puzzles row 14 : 791 | Proselytizing row 15 : 796 | Square Dancing row 16 : 799 | Bungee Jumping <table_name> : Faculty_Participates_in col : FacID | actid row 1 : 1082 | 784 row 2 : 1082 | 785 row 3 : 1082 | 790 row 4 : 1121 | 771 row 5 : 1121 | 777 row 6 : 1121 | 770 row 7 : 1193 | 790 row 8 : 1193 | 796 row 9 : 1193 | 773 row 10 : 2192 | 773 row 11 : 2192 | 790 row 12 : 2192 | 778 row 13 : 3457 | 782 row 14 : 3457 | 771 row 15 : 3457 | 784 row 16 : 4230 | 790 row 17 : 4230 | 785 row 18 : 6112 | 785 row 19 : 6112 | 772 row 20 : 7723 | 785 row 21 : 7723 | 770 row 22 : 8114 | 776 row 23 : 8721 | 770 row 24 : 8721 | 780 row 25 : 8741 | 780 row 26 : 8741 | 790 row 27 : 8918 | 780 row 28 : 8918 | 782 row 29 : 8918 | 771 row 30 : 2881 | 790 row 31 : 2881 | 784 row 32 : 4432 | 770 row 33 : 4432 | 771 row 34 : 5718 | 776 row 35 : 6182 | 776 row 36 : 6182 | 785 row 37 : 1177 | 790 row 38 : 1177 | 770 row 39 : 1177 | 770 row 40 : 9922 | 796 <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : activity_name row 1 : Canasta row 2 : Chess row 3 : Crossword Puzzles
SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID
[ "Faculty_Participates_in", "Faculty" ]
[ "{\"columns\":[\"FacID\",\"actid\"],\"index\":[0,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],\"data\":[[1082,784],[1082,785],[1082,790],[1121,771],[1121,777],[1121,770],[1193,790],[1193,796],[1193,773],[2192,773],[2192,790],[2192,778],[3457,782],[3457,771],[3457,784],[4230,790],[4230,785],[6112,785],[6112,772],[7723,785],[7723,770],[8114,776],[8721,770],[8721,780],[8741,780],[8741,790],[8918,780],[8918,782],[8918,771],[2881,790],[2881,784],[4432,770],[4432,771],[5718,776],[6182,776],[6182,785],[1177,790],[1177,770],[1177,770],[9922,796]]}", "{\"columns\":[\"FacID\",\"Lname\",\"Fname\",\"Rank\",\"Sex\",\"Phone\",\"Room\",\"Building\"],\"index\":[0,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],\"data\":[[1082,\"Giuliano\",\"Mark\",\"Instructor\",\"M\",2424,\"224\",\"NEB\"],[1121,\"Goodrich\",\"Michael\",\"Professor\",\"M\",3593,\"219\",\"NEB\"],[1148,\"Masson\",\"Gerald\",\"Professor\",\"M\",3402,\"224B\",\"NEB\"],[1172,\"Runolfsson\",\"Thordur\",\"AssocProf\",\"M\",3121,\"119\",\"Barton\"],[1177,\"Naiman\",\"Daniel\",\"Professor\",\"M\",3571,\"288\",\"Krieger\"],[1193,\"Jones\",\"Stacey\",\"Instructor\",\"F\",3550,\"224\",\"NEB\"],[1823,\"Davidson\",\"Frederic\",\"Professor\",\"M\",5629,\"119\",\"Barton\"],[2028,\"Brody\",\"William\",\"Professor\",\"M\",6073,\"119\",\"Barton\"],[2119,\"Meyer\",\"Gerard\",\"Professor\",\"M\",6350,\"119\",\"Barton\"],[2192,\"Yarowsky\",\"David\",\"AsstProf\",\"M\",6587,\"324\",\"NEB\"],[2291,\"Scheinerman\",\"Edward\",\"Professor\",\"M\",6654,\"288\",\"Krieger\"],[2311,\"Priebe\",\"Carey\",\"AsstProf\",\"M\",6953,\"288\",\"Krieger\"],[2738,\"Fill\",\"James\",\"Professor\",\"M\",8209,\"288\",\"Krieger\"],[2881,\"Goldman\",\"Alan\",\"Professor\",\"M\",8335,\"288\",\"Krieger\"],[3457,\"Smith\",\"Scott\",\"AssocProf\",\"M\",1035,\"318\",\"NEB\"],[4230,\"Houlahan\",\"Joanne\",\"Instructor\",\"F\",1260,\"328\",\"NEB\"],[4432,\"Burzio\",\"Luigi\",\"Professor\",\"M\",1813,\"288\",\"Krieger\"],[5718,\"Frank\",\"Robert\",\"AsstProf\",\"M\",1751,\"288\",\"Krieger\"],[6112,\"Beach\",\"Louis\",\"Instructor\",\"M\",1838,\"207\",\"NEB\"],[6182,\"Cheng\",\"Cheng\",\"AsstProf\",\"M\",1856,\"288\",\"Krieger\"],[6191,\"Kaplan\",\"Alexander\",\"Professor\",\"M\",1825,\"119\",\"Barton\"],[6330,\"Byrne\",\"William\",\"Instructor\",\"M\",1691,\"119\",\"Barton\"],[6541,\"Han\",\"Shih-Ping\",\"Professor\",\"M\",1914,\"288\",\"Krieger\"],[6910,\"Smolensky\",\"Paul\",\"Professor\",\"M\",2072,\"288\",\"Krieger\"],[6925,\"Iglesias\",\"Pablo\",\"AsstProf\",\"M\",2021,\"119\",\"Barton\"],[7134,\"Goutsias\",\"John\",\"Professor\",\"M\",2184,\"119\",\"Barton\"],[7231,\"Rugh\",\"Wilson\",\"Professor\",\"M\",2191,\"119\",\"Barton\"],[7271,\"Jelinek\",\"Frederick\",\"Professor\",\"M\",2890,\"119\",\"Barton\"],[7506,\"Westgate\",\"Charles\",\"Professor\",\"M\",2932,\"119\",\"Barton\"],[7712,\"Awerbuch\",\"Baruch\",\"Professor\",\"M\",2105,\"220\",\"NEB\"],[7723,\"Taylor\",\"Russell\",\"Professor\",\"M\",2435,\"317\",\"NEB\"],[7792,\"Brill\",\"Eric\",\"AsstProf\",\"M\",2303,\"324B\",\"NEB\"],[8102,\"James\",\"Lancelot\",\"AsstProf\",\"M\",2792,\"288\",\"Krieger\"],[8114,\"Angelopoulou\",\"Ellie\",\"Instructor\",\"F\",2152,\"316\",\"NEB\"],[8118,\"Weinert\",\"Howard\",\"Professor\",\"M\",3272,\"119\",\"Barton\"],[8122,\"Wierman\",\"John\",\"Professor\",\"M\",3392,\"288\",\"Krieger\"],[8423,\"Kumar\",\"Subodh\",\"AsstProf\",\"M\",2522,\"218\",\"NEB\"],[8721,\"Wolff\",\"Lawrence\",\"AssocProf\",\"M\",2342,\"316\",\"NEB\"],[8722,\"Cauwenberghs\",\"Gert\",\"AsstProf\",\"M\",1372,\"119\",\"Barton\"],[8723,\"Andreou\",\"Andreas\",\"Professor\",\"M\",1402,\"119\",\"Barton\"],[8741,\"Salzberg\",\"Steven\",\"AssocProf\",\"M\",2641,\"324A\",\"NEB\"],[8772,\"Cowen\",\"Lenore\",\"AsstProf\",\"F\",2870,\"288\",\"Krieger\"],[8791,\"McCloskey\",\"Michael\",\"Professor\",\"M\",3440,\"288\",\"Krieger\"],[8918,\"Amir\",\"Yair\",\"AsstProf\",\"M\",2672,\"308\",\"NEB\"],[8989,\"Brent\",\"Michael\",\"AsstProf\",\"M\",9373,\"288\",\"Krieger\"],[9011,\"Rapp\",\"Brenda\",\"AsstProf\",\"F\",2032,\"288\",\"Krieger\"],[9172,\"Kosaraju\",\"Rao\",\"Professor\",\"M\",2757,\"319\",\"NEB\"],[9191,\"Collins\",\"Oliver\",\"AssocProf\",\"M\",5427,\"119\",\"Barton\"],[9199,\"Hughes\",\"Brian\",\"AssocProf\",\"M\",5666,\"119\",\"Barton\"],[9210,\"Joseph\",\"Richard\",\"Professor\",\"M\",5996,\"119\",\"Barton\"],[9379,\"Khurgin\",\"Jacob\",\"Professor\",\"M\",1060,\"119\",\"Barton\"],[9514,\"Prince\",\"Jerry\",\"AssocProf\",\"M\",5106,\"119\",\"Barton\"],[9643,\"Legendre\",\"Geraldine\",\"AssocProf\",\"F\",8972,\"288\",\"Krieger\"],[9811,\"Wu\",\"Colin\",\"AsstProf\",\"M\",2906,\"288\",\"Krieger\"],[9823,\"Pang\",\"Jong-Shi\",\"Professor\",\"M\",4366,\"288\",\"Krieger\"],[9824,\"Glaser\",\"Robert\",\"Instructor\",\"M\",4396,\"119\",\"Barton\"],[9826,\"Delcher\",\"Arthur\",\"Instructor\",\"M\",2956,\"329\",\"NEB\"],[9922,\"Hall\",\"Leslie\",\"AsstProf\",\"F\",7332,\"288\",\"Krieger\"]]}" ]
{"columns":["Fname","Lname","count(*)","FacID"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"data":[["Mark","Giuliano",3,1082],["Michael","Goodrich",3,1121],["Daniel","Naiman",3,1177],["Stacey","Jones",3,1193],["David","Yarowsky",3,2192],["Alan","Goldman",2,2881],["Scott","Smith",3,3457],["Joanne","Houlahan",2,4230],["Luigi","Burzio",2,4432],["Robert","Frank",1,5718],["Louis","Beach",2,6112],["Cheng","Cheng",2,6182],["Russell","Taylor",2,7723],["Ellie","Angelopoulou",1,8114],["Lawrence","Wolff",2,8721],["Steven","Salzberg",2,8741],["Yair","Amir",3,8918],["Leslie","Hall",1,9922]]}
SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID <table_name> : Faculty_Participates_in col : FacID | actid row 1 : 1082 | 784 row 2 : 1082 | 785 row 3 : 1082 | 790 row 4 : 1121 | 771 row 5 : 1121 | 777 row 6 : 1121 | 770 row 7 : 1193 | 790 row 8 : 1193 | 796 row 9 : 1193 | 773 row 10 : 2192 | 773 row 11 : 2192 | 790 row 12 : 2192 | 778 row 13 : 3457 | 782 row 14 : 3457 | 771 row 15 : 3457 | 784 row 16 : 4230 | 790 row 17 : 4230 | 785 row 18 : 6112 | 785 row 19 : 6112 | 772 row 20 : 7723 | 785 row 21 : 7723 | 770 row 22 : 8114 | 776 row 23 : 8721 | 770 row 24 : 8721 | 780 row 25 : 8741 | 780 row 26 : 8741 | 790 row 27 : 8918 | 780 row 28 : 8918 | 782 row 29 : 8918 | 771 row 30 : 2881 | 790 row 31 : 2881 | 784 row 32 : 4432 | 770 row 33 : 4432 | 771 row 34 : 5718 | 776 row 35 : 6182 | 776 row 36 : 6182 | 785 row 37 : 1177 | 790 row 38 : 1177 | 770 row 39 : 1177 | 770 row 40 : 9922 | 796 <table_name> : Faculty col : FacID | Lname | Fname | Rank | Sex | Phone | Room | Building row 1 : 1082 | Giuliano | Mark | Instructor | M | 2424 | 224 | NEB row 2 : 1121 | Goodrich | Michael | Professor | M | 3593 | 219 | NEB row 3 : 1148 | Masson | Gerald | Professor | M | 3402 | 224B | NEB row 4 : 1172 | Runolfsson | Thordur | AssocProf | M | 3121 | 119 | Barton row 5 : 1177 | Naiman | Daniel | Professor | M | 3571 | 288 | Krieger row 6 : 1193 | Jones | Stacey | Instructor | F | 3550 | 224 | NEB row 7 : 1823 | Davidson | Frederic | Professor | M | 5629 | 119 | Barton row 8 : 2028 | Brody | William | Professor | M | 6073 | 119 | Barton row 9 : 2119 | Meyer | Gerard | Professor | M | 6350 | 119 | Barton row 10 : 2192 | Yarowsky | David | AsstProf | M | 6587 | 324 | NEB row 11 : 2291 | Scheinerman | Edward | Professor | M | 6654 | 288 | Krieger row 12 : 2311 | Priebe | Carey | AsstProf | M | 6953 | 288 | Krieger row 13 : 2738 | Fill | James | Professor | M | 8209 | 288 | Krieger row 14 : 2881 | Goldman | Alan | Professor | M | 8335 | 288 | Krieger row 15 : 3457 | Smith | Scott | AssocProf | M | 1035 | 318 | NEB row 16 : 4230 | Houlahan | Joanne | Instructor | F | 1260 | 328 | NEB row 17 : 4432 | Burzio | Luigi | Professor | M | 1813 | 288 | Krieger row 18 : 5718 | Frank | Robert | AsstProf | M | 1751 | 288 | Krieger row 19 : 6112 | Beach | Louis | Instructor | M | 1838 | 207 | NEB row 20 : 6182 | Cheng | Cheng | AsstProf | M | 1856 | 288 | Krieger row 21 : 6191 | Kaplan | Alexander | Professor | M | 1825 | 119 | Barton row 22 : 6330 | Byrne | William | Instructor | M | 1691 | 119 | Barton row 23 : 6541 | Han | Shih-Ping | Professor | M | 1914 | 288 | Krieger row 24 : 6910 | Smolensky | Paul | Professor | M | 2072 | 288 | Krieger row 25 : 6925 | Iglesias | Pablo | AsstProf | M | 2021 | 119 | Barton row 26 : 7134 | Goutsias | John | Professor | M | 2184 | 119 | Barton row 27 : 7231 | Rugh | Wilson | Professor | M | 2191 | 119 | Barton row 28 : 7271 | Jelinek | Frederick | Professor | M | 2890 | 119 | Barton row 29 : 7506 | Westgate | Charles | Professor | M | 2932 | 119 | Barton row 30 : 7712 | Awerbuch | Baruch | Professor | M | 2105 | 220 | NEB row 31 : 7723 | Taylor | Russell | Professor | M | 2435 | 317 | NEB row 32 : 7792 | Brill | Eric | AsstProf | M | 2303 | 324B | NEB row 33 : 8102 | James | Lancelot | AsstProf | M | 2792 | 288 | Krieger row 34 : 8114 | Angelopoulou | Ellie | Instructor | F | 2152 | 316 | NEB row 35 : 8118 | Weinert | Howard | Professor | M | 3272 | 119 | Barton row 36 : 8122 | Wierman | John | Professor | M | 3392 | 288 | Krieger row 37 : 8423 | Kumar | Subodh | AsstProf | M | 2522 | 218 | NEB row 38 : 8721 | Wolff | Lawrence | AssocProf | M | 2342 | 316 | NEB row 39 : 8722 | Cauwenberghs | Gert | AsstProf | M | 1372 | 119 | Barton row 40 : 8723 | Andreou | Andreas | Professor | M | 1402 | 119 | Barton row 41 : 8741 | Salzberg | Steven | AssocProf | M | 2641 | 324A | NEB row 42 : 8772 | Cowen | Lenore | AsstProf | F | 2870 | 288 | Krieger row 43 : 8791 | McCloskey | Michael | Professor | M | 3440 | 288 | Krieger row 44 : 8918 | Amir | Yair | AsstProf | M | 2672 | 308 | NEB row 45 : 8989 | Brent | Michael | AsstProf | M | 9373 | 288 | Krieger row 46 : 9011 | Rapp | Brenda | AsstProf | F | 2032 | 288 | Krieger row 47 : 9172 | Kosaraju | Rao | Professor | M | 2757 | 319 | NEB row 48 : 9191 | Collins | Oliver | AssocProf | M | 5427 | 119 | Barton row 49 : 9199 | Hughes | Brian | AssocProf | M | 5666 | 119 | Barton row 50 : 9210 | Joseph | Richard | Professor | M | 5996 | 119 | Barton row 51 : 9379 | Khurgin | Jacob | Professor | M | 1060 | 119 | Barton row 52 : 9514 | Prince | Jerry | AssocProf | M | 5106 | 119 | Barton row 53 : 9643 | Legendre | Geraldine | AssocProf | F | 8972 | 288 | Krieger row 54 : 9811 | Wu | Colin | AsstProf | M | 2906 | 288 | Krieger row 55 : 9823 | Pang | Jong-Shi | Professor | M | 4366 | 288 | Krieger row 56 : 9824 | Glaser | Robert | Instructor | M | 4396 | 119 | Barton row 57 : 9826 | Delcher | Arthur | Instructor | M | 2956 | 329 | NEB row 58 : 9922 | Hall | Leslie | AsstProf | F | 7332 | 288 | Krieger
col : Fname | Lname | count(*) | FacID row 1 : Mark | Giuliano | 3 | 1082 row 2 : Michael | Goodrich | 3 | 1121 row 3 : Daniel | Naiman | 3 | 1177 row 4 : Stacey | Jones | 3 | 1193 row 5 : David | Yarowsky | 3 | 2192 row 6 : Alan | Goldman | 2 | 2881 row 7 : Scott | Smith | 3 | 3457 row 8 : Joanne | Houlahan | 2 | 4230 row 9 : Luigi | Burzio | 2 | 4432 row 10 : Robert | Frank | 1 | 5718 row 11 : Louis | Beach | 2 | 6112 row 12 : Cheng | Cheng | 2 | 6182 row 13 : Russell | Taylor | 2 | 7723 row 14 : Ellie | Angelopoulou | 1 | 8114 row 15 : Lawrence | Wolff | 2 | 8721 row 16 : Steven | Salzberg | 2 | 8741 row 17 : Yair | Amir | 3 | 8918 row 18 : Leslie | Hall | 1 | 9922
SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID
[ "Activity", "Faculty_Participates_in" ]
[ "{\"columns\":[\"actid\",\"activity_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],\"data\":[[770,\"Mountain Climbing\"],[771,\"Canoeing\"],[772,\"Kayaking\"],[773,\"Spelunking\"],[776,\"Extreme Canasta\"],[777,\"Soccer\"],[778,\"Baseball\"],[779,\"Accordion Ensemble\"],[780,\"Football\"],[782,\"Volleyball\"],[784,\"Canasta\"],[785,\"Chess\"],[790,\"Crossword Puzzles\"],[791,\"Proselytizing\"],[796,\"Square Dancing\"],[799,\"Bungee Jumping\"]]}", "{\"columns\":[\"FacID\",\"actid\"],\"index\":[0,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],\"data\":[[1082,784],[1082,785],[1082,790],[1121,771],[1121,777],[1121,770],[1193,790],[1193,796],[1193,773],[2192,773],[2192,790],[2192,778],[3457,782],[3457,771],[3457,784],[4230,790],[4230,785],[6112,785],[6112,772],[7723,785],[7723,770],[8114,776],[8721,770],[8721,780],[8741,780],[8741,790],[8918,780],[8918,782],[8918,771],[2881,790],[2881,784],[4432,770],[4432,771],[5718,776],[6182,776],[6182,785],[1177,790],[1177,770],[1177,770],[9922,796]]}" ]
{"columns":["activity_name","count(*)"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12],"data":[["Mountain Climbing",6],["Canoeing",4],["Kayaking",1],["Spelunking",2],["Extreme Canasta",3],["Soccer",1],["Baseball",1],["Football",3],["Volleyball",2],["Canasta",3],["Chess",5],["Crossword Puzzles",7],["Square Dancing",2]]}
SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID <table_name> : Activity col : actid | activity_name row 1 : 770 | Mountain Climbing row 2 : 771 | Canoeing row 3 : 772 | Kayaking row 4 : 773 | Spelunking row 5 : 776 | Extreme Canasta row 6 : 777 | Soccer row 7 : 778 | Baseball row 8 : 779 | Accordion Ensemble row 9 : 780 | Football row 10 : 782 | Volleyball row 11 : 784 | Canasta row 12 : 785 | Chess row 13 : 790 | Crossword Puzzles row 14 : 791 | Proselytizing row 15 : 796 | Square Dancing row 16 : 799 | Bungee Jumping <table_name> : Faculty_Participates_in col : FacID | actid row 1 : 1082 | 784 row 2 : 1082 | 785 row 3 : 1082 | 790 row 4 : 1121 | 771 row 5 : 1121 | 777 row 6 : 1121 | 770 row 7 : 1193 | 790 row 8 : 1193 | 796 row 9 : 1193 | 773 row 10 : 2192 | 773 row 11 : 2192 | 790 row 12 : 2192 | 778 row 13 : 3457 | 782 row 14 : 3457 | 771 row 15 : 3457 | 784 row 16 : 4230 | 790 row 17 : 4230 | 785 row 18 : 6112 | 785 row 19 : 6112 | 772 row 20 : 7723 | 785 row 21 : 7723 | 770 row 22 : 8114 | 776 row 23 : 8721 | 770 row 24 : 8721 | 780 row 25 : 8741 | 780 row 26 : 8741 | 790 row 27 : 8918 | 780 row 28 : 8918 | 782 row 29 : 8918 | 771 row 30 : 2881 | 790 row 31 : 2881 | 784 row 32 : 4432 | 770 row 33 : 4432 | 771 row 34 : 5718 | 776 row 35 : 6182 | 776 row 36 : 6182 | 785 row 37 : 1177 | 790 row 38 : 1177 | 770 row 39 : 1177 | 770 row 40 : 9922 | 796
col : activity_name | count(*) row 1 : Mountain Climbing | 6 row 2 : Canoeing | 4 row 3 : Kayaking | 1 row 4 : Spelunking | 2 row 5 : Extreme Canasta | 3 row 6 : Soccer | 1 row 7 : Baseball | 1 row 8 : Football | 3 row 9 : Volleyball | 2 row 10 : Canasta | 3 row 11 : Chess | 5 row 12 : Crossword Puzzles | 7 row 13 : Square Dancing | 2