db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
19
228
query_toks
sequence
query_toks_no_value
sequence
question_toks
sequence
train_station
SELECT name , LOCATION , number_of_platforms FROM station
Are Showing the name, location, and number of platforms for all stations.
[ "SELECT", "name", ",", "LOCATION", ",", "number_of_platforms", "FROM", "station" ]
[ "select", "name", ",", "location", ",", "number_of_platforms", "from", "station" ]
[ "Are", "Showing", "the", "name,", "location,", "and", "number", "of", "platforms", "for", "all", "stations." ]
train_station
SELECT DISTINCT LOCATION FROM station
What-all are all locations of train stations?
[ "SELECT", "DISTINCT", "LOCATION", "FROM", "station" ]
[ "select", "distinct", "location", "from", "station" ]
[ "What-all", "are", "all", "locations", "of", "train", "stations?" ]
train_station
SELECT name , total_passengers FROM station WHERE LOCATION != 'London'
Are Showing the names and total passengers for all train stations not in London.
[ "SELECT", "name", ",", "total_passengers", "FROM", "station", "WHERE", "LOCATION", "!", "=", "'London", "'" ]
[ "select", "name", ",", "total_passengers", "from", "station", "where", "location", "!", "=", "value" ]
[ "Are", "Showing", "the", "names", "and", "total", "passengers", "for", "all", "train", "stations", "not", "in", "London." ]
train_station
SELECT name , main_services FROM station ORDER BY total_passengers DESC LIMIT 3
Show the names and main services for train stations have the top three total number of passengers.
[ "SELECT", "name", ",", "main_services", "FROM", "station", "ORDER", "BY", "total_passengers", "DESC", "LIMIT", "3" ]
[ "select", "name", ",", "main_services", "from", "station", "order", "by", "total_passengers", "desc", "limit", "value" ]
[ "Show", "the", "names", "and", "main", "services", "for", "train", "stations", "have", "the", "top", "three", "total", "number", "of", "passengers." ]
train_station
SELECT avg(total_passengers) , max(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'
What-all is the average and maximum number of total passengers for train stations in London or Glasgow?
[ "SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "'London", "'", "OR", "LOCATION", "=", "'Glasgow", "'" ]
[ "select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "value", "or", "location", "=", "value" ]
[ "What-all", "is", "the", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow?" ]
train_station
SELECT LOCATION , sum(number_of_platforms) , sum(total_passengers) FROM station GROUP BY LOCATION
Are Showing all locations and the total number of platforms and passengers for all train stations in each location.
[ "SELECT", "LOCATION", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "FROM", "station", "GROUP", "BY", "LOCATION" ]
[ "select", "location", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "from", "station", "group", "by", "location" ]
[ "Are", "Showing", "all", "locations", "and", "the", "total", "number", "of", "platforms", "and", "passengers", "for", "all", "train", "stations", "in", "each", "location." ]
train_station
SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25
Show all locations have train stations with at least 15 platforms and train stations with more than 25 total passengers.
[ "SELECT", "DISTINCT", "LOCATION", "FROM", "station", "WHERE", "number_of_platforms", ">", "=", "15", "AND", "total_passengers", ">", "25" ]
[ "select", "distinct", "location", "from", "station", "where", "number_of_platforms", ">", "=", "value", "and", "total_passengers", ">", "value" ]
[ "Show", "all", "locations", "have", "train", "stations", "with", "at", "least", "15", "platforms", "and", "train", "stations", "with", "more", "than", "25", "total", "passengers." ]
train_station
SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15
Are Showing all locations which don't ai train no station with at least 15 no platforms.
[ "SELECT", "LOCATION", "FROM", "station", "EXCEPT", "SELECT", "LOCATION", "FROM", "station", "WHERE", "number_of_platforms", ">", "=", "15" ]
[ "select", "location", "from", "station", "except", "select", "location", "from", "station", "where", "number_of_platforms", ">", "=", "value" ]
[ "Are", "Showing", "all", "locations", "which", "don't", "ai", "train", "no", "station", "with", "at", "least", "15", "no", "platforms." ]
train_station
SELECT LOCATION FROM station GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1
Show the location with most number of train stations.
[ "SELECT", "LOCATION", "FROM", "station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "location", "from", "station", "group", "by", "location", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Show", "the", "location", "with", "most", "number", "of", "train", "stations." ]
train_station
SELECT name , TIME , service FROM train
Are Showing the name, time, and service for all trains.
[ "SELECT", "name", ",", "TIME", ",", "service", "FROM", "train" ]
[ "select", "name", ",", "time", ",", "service", "from", "train" ]
[ "Are", "Showing", "the", "name,", "time,", "and", "service", "for", "all", "trains." ]
train_station
SELECT count(*) FROM train
Show the number of trains
[ "SELECT", "count", "(", "*", ")", "FROM", "train" ]
[ "select", "count", "(", "*", ")", "from", "train" ]
[ "Show", "the", "number", "of", "trains" ]
train_station
SELECT name , service FROM train ORDER BY TIME
Are Showing the name and service for all trains in order by time.
[ "SELECT", "name", ",", "service", "FROM", "train", "ORDER", "BY", "TIME" ]
[ "select", "name", ",", "service", "from", "train", "order", "by", "time" ]
[ "Are", "Showing", "the", "name", "and", "service", "for", "all", "trains", "in", "order", "by", "time." ]
train_station
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
Are Showing the station name and number of trains in each station.
[ "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" ]
[ "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" ]
[ "Are", "Showing", "the", "station", "name", "and", "number", "of", "trains", "in", "each", "station." ]
train_station
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
show the train and station name each train name.
[ "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" ]
[ "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" ]
[ "show", "the", "train", "and", "station", "name", "each", "train", "name." ]
train_station
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
Show all train names and times in stations in London in a-descending order by train time.
[ "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" ]
[ "select", "t3", ".", "name", ",", "t3", ".", "time", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t2", ".", "location", "=", "value", "order", "by", "t3", ".", "time", "desc" ]
[ "Show", "all", "train", "names", "and", "times", "in", "stations", "in", "London", "in", "a-descending", "order", "by", "train", "time." ]
train_station
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
Show the station name with greatest number of trains.
[ "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" ]
[ "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", "value" ]
[ "Show", "the", "station", "name", "with", "greatest", "number", "of", "trains." ]
train_station
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
Are Showing the station at least two trains name.
[ "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" ]
[ "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", "(", "*", ")", ">", "=", "value" ]
[ "Are", "Showing", "the", "station", "at", "least", "two", "trains", "name." ]
train_station
SELECT LOCATION FROM station GROUP BY LOCATION HAVING count(*) = 1
Show all only 1 station locations.
[ "SELECT", "LOCATION", "FROM", "station", "GROUP", "BY", "LOCATION", "HAVING", "count", "(", "*", ")", "=", "1" ]
[ "select", "location", "from", "station", "group", "by", "location", "having", "count", "(", "*", ")", "=", "value" ]
[ "Show", "all", "only", "1", "station", "locations." ]
train_station
SELECT name FROM station WHERE station_id NOT IN (SELECT station_id FROM train_station)
Show station names without any trains.
[ "SELECT", "name", "FROM", "station", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "train_station", ")" ]
[ "select", "name", "from", "station", "where", "station_id", "not", "in", "(", "select", "station_id", "from", "train_station", ")" ]
[ "Show", "station", "names", "without", "any", "trains." ]
train_station
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"
What-all are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" trains?
[ "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", "''" ]
[ "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", "=", "value", "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", "=", "value" ]
[ "What-all", "are", "the", "names", "of", "the", "stations", "which", "serve", "both", "\"Ananthapuri", "Express\"", "and", "\"Guruvayur", "Express\"", "trains?" ]
train_station
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")
Are Finding the names of the trains is not passing no station located in London.
[ "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", "''", ")" ]
[ "select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "train_id", "=", "t2", ".", "train_id", "where", "t1", ".", "station_id", "not", "in", "(", "select", "t4", ".", "station_id", "from", "train_station", "as", "t3", "join", "station", "as", "t4", "on", "t3", ".", "station_id", "=", "t4", ".", "station_id", "where", "t4", ".", "location", "=", "value", ")" ]
[ "Are", "Finding", "the", "names", "of", "the", "trains", "is", "not", "passing", "no", "station", "located", "in", "London." ]
train_station
SELECT name , LOCATION FROM station ORDER BY Annual_entry_exit , Annual_interchanges
List the names and locations of all stations a-ordered by theirn yearly entry exit and interchange amounts.
[ "SELECT", "name", ",", "LOCATION", "FROM", "station", "ORDER", "BY", "Annual_entry_exit", ",", "Annual_interchanges" ]
[ "select", "name", ",", "location", "from", "station", "order", "by", "annual_entry_exit", ",", "annual_interchanges" ]
[ "List", "the", "names", "and", "locations", "of", "all", "stations", "a-ordered", "by", "theirn", "yearly", "entry", "exit", "and", "interchange", "amounts." ]
driving_school
SELECT vehicle_id FROM Vehicles;
List all vehicle imight would
[ "SELECT", "vehicle_id", "FROM", "Vehicles", ";" ]
[ "select", "vehicle_id", "from", "vehicles" ]
[ "List", "all", "vehicle", "imight", "would" ]
driving_school
SELECT vehicle_id FROM Vehicles;
What-all are the ids of all vehicles?
[ "SELECT", "vehicle_id", "FROM", "Vehicles", ";" ]
[ "select", "vehicle_id", "from", "vehicles" ]
[ "What-all", "are", "the", "ids", "of", "all", "vehicles?" ]
driving_school
SELECT count(*) FROM Vehicles;
How many vehicle in total?
[ "SELECT", "count", "(", "*", ")", "FROM", "Vehicles", ";" ]
[ "select", "count", "(", "*", ")", "from", "vehicles" ]
[ "How", "many", "vehicle", "in", "total?" ]
driving_school
SELECT count(*) FROM Vehicles;
How many vehicles are existing?
[ "SELECT", "count", "(", "*", ")", "FROM", "Vehicles", ";" ]
[ "select", "count", "(", "*", ")", "from", "vehicles" ]
[ "How", "many", "vehicles", "are", "existing?" ]
driving_school
SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;
Are Showing the detail of vehicle with id 1.
[ "SELECT", "vehicle_details", "FROM", "Vehicles", "WHERE", "vehicle_id", "=", "1", ";" ]
[ "select", "vehicle_details", "from", "vehicles", "where", "vehicle_id", "=", "value" ]
[ "Are", "Showing", "the", "detail", "of", "vehicle", "with", "id", "1." ]
driving_school
SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1;
What-all are the details of the car with id 1?
[ "SELECT", "vehicle_details", "FROM", "Vehicles", "WHERE", "vehicle_id", "=", "1", ";" ]
[ "select", "vehicle_details", "from", "vehicles", "where", "vehicle_id", "=", "value" ]
[ "What-all", "are", "the", "details", "of", "the", "car", "with", "id", "1?" ]
driving_school
SELECT first_name , middle_name , last_name FROM Staff;
List the first name middle name and last name of all staff.
[ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Staff", ";" ]
[ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "staff" ]
[ "List", "the", "first", "name", "middle", "name", "and", "last", "name", "of", "all", "staff." ]
driving_school
SELECT first_name , middle_name , last_name FROM Staff;
What-all are the first, middle, and last names of all staffs?
[ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Staff", ";" ]
[ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "staff" ]
[ "What-all", "are", "the", "first,", "middle,", "and", "last", "names", "of", "all", "staffs?" ]
driving_school
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
What-all is the birthday of the staffs member with first name as Janessa and last name as Sawayn?
[ "SELECT", "date_of_birth", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "date_of_birth", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "birthday", "of", "the", "staffs", "member", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn?" ]
driving_school
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
What-all is the date of birth for the staff member a-named Janessa Sawayn?
[ "SELECT", "date_of_birth", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "date_of_birth", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "date", "of", "birth", "for", "the", "staff", "member", "a-named", "Janessa", "Sawayn?" ]
driving_school
SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
When did the staff member with first name as Janessa and last name as It is the company that sawayn join?
[ "SELECT", "date_joined_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "date_joined_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "When", "did", "the", "staff", "member", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "It", "is", "the", "company", "that", "sawayn", "join?" ]
driving_school
SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
When did the staff member a-named Janessa Sawayn join the company?
[ "SELECT", "date_joined_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "date_joined_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "When", "did", "the", "staff", "member", "a-named", "Janessa", "Sawayn", "join", "the", "company?" ]
driving_school
SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
When did the staff member with first name as Janessa and last name as Sawayn leave the company?
[ "SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "date_left_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "When", "did", "the", "staff", "member", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "leave", "the", "company?" ]
driving_school
SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
When did the staffs member Janessa Sawayn leave the companys?
[ "SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "date_left_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "When", "did", "the", "staffs", "member", "Janessa", "Sawayn", "leave", "the", "companys?" ]
driving_school
SELECT count(*) FROM Staff WHERE first_name = "Ludie";
It is the first name Ludie that how many staff have?
[ "SELECT", "count", "(", "*", ")", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Ludie", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "staff", "where", "first_name", "=", "value" ]
[ "It", "is", "the", "first", "name", "Ludie", "that", "how", "many", "staff", "have?" ]
driving_school
SELECT count(*) FROM Staff WHERE first_name = "Ludie";
How many employees have a first Ludie name?
[ "SELECT", "count", "(", "*", ")", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Ludie", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "staff", "where", "first_name", "=", "value" ]
[ "How", "many", "employees", "have", "a", "first", "Ludie", "name?" ]
driving_school
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
What-all is the nickname of staff with first name as Janessa and last name as Sawayn?
[ "SELECT", "nickname", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "nickname", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "nickname", "of", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn?" ]
driving_school
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn";
What-all is the nickname of the employee named Janessa Sawayn?
[ "SELECT", "nickname", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "nickname", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "nickname", "of", "the", "employee", "named", "Janessa", "Sawayn?" ]
driving_school
SELECT count(*) FROM Staff;
How many staffs in total?
[ "SELECT", "count", "(", "*", ")", "FROM", "Staff", ";" ]
[ "select", "count", "(", "*", ")", "from", "staff" ]
[ "How", "many", "staffs", "in", "total?" ]
driving_school
SELECT count(*) FROM Staff;
How many employees are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "Staff", ";" ]
[ "select", "count", "(", "*", ")", "from", "staff" ]
[ "How", "many", "employees", "are", "there?" ]
driving_school
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";
Which city does staff with first name as Janessa and last name as Sawayn live?
[ "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", "''", ";" ]
[ "select", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "Which", "city", "does", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "live?" ]
driving_school
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";
In what city does Janessa Sawayn live?
[ "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", "''", ";" ]
[ "select", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "In", "what", "city", "does", "Janessa", "Sawayn", "live?" ]
driving_school
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";
Which country and state does are staffing with first name as Janessa and last name as Sawayn had lived?
[ "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", "''", ";" ]
[ "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", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "Which", "country", "and", "state", "does", "are", "staffing", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "had", "lived?" ]
driving_school
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";
In which country and state is Janessa Sawayn living?
[ "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", "''", ";" ]
[ "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", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "In", "which", "country", "and", "state", "is", "Janessa", "Sawayn", "living?" ]
driving_school
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";
How long is the total lesson time take by customer with first name as Rylan and last name as Goodwin?
[ "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", "''", ";" ]
[ "select", "sum", "(", "t1", ".", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "How", "long", "is", "the", "total", "lesson", "time", "take", "by", "customer", "with", "first", "name", "as", "Rylan", "and", "last", "name", "as", "Goodwin?" ]
driving_school
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";
How long is the total lesson time take by the customer a-named Rylan Goodwin?
[ "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", "''", ";" ]
[ "select", "sum", "(", "t1", ".", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "How", "long", "is", "the", "total", "lesson", "time", "take", "by", "the", "customer", "a-named", "Rylan", "Goodwin?" ]
driving_school
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";
What-all is the zip code of staff with first name as Janessa and last name as Sawayn live?
[ "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", "''", ";" ]
[ "select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "What-all", "is", "the", "zip", "code", "of", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "live?" ]
driving_school
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";
What-all is the zip code of the the employee hosue named Janessa Sawayn?
[ "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", "''", ";" ]
[ "select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "What-all", "is", "the", "zip", "code", "of", "the", "the", "employee", "hosue", "named", "Janessa", "Sawayn?" ]
driving_school
SELECT count(*) FROM Addresses WHERE state_province_county = "Georgia";
How many staff is living in state Georgia?
[ "SELECT", "count", "(", "*", ")", "FROM", "Addresses", "WHERE", "state_province_county", "=", "``", "Georgia", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "addresses", "where", "state_province_county", "=", "value" ]
[ "How", "many", "staff", "is", "living", "in", "state", "Georgia?" ]
driving_school
SELECT count(*) FROM Addresses WHERE state_province_county = "Georgia";
How many employees are living in Georgia?
[ "SELECT", "count", "(", "*", ")", "FROM", "Addresses", "WHERE", "state_province_county", "=", "``", "Georgia", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "addresses", "where", "state_province_county", "=", "value" ]
[ "How", "many", "employees", "are", "living", "in", "Georgia?" ]
driving_school
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";
Find out the first name and last name of staffs live in city Damianfort.
[ "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", "''", ";" ]
[ "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", "=", "value" ]
[ "Find", "out", "the", "first", "name", "and", "last", "name", "of", "staffs", "live", "in", "city", "Damianfort." ]
driving_school
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";
What-all is the first and last name of all employees which live in the city Damianfort?
[ "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", "''", ";" ]
[ "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", "=", "value" ]
[ "What-all", "is", "the", "first", "and", "last", "name", "of", "all", "employees", "which", "live", "in", "the", "city", "Damianfort?" ]
driving_school
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;
Which city is living most of staffs? Are Listing the city name and number of staffs.
[ "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", ";" ]
[ "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", "value" ]
[ "Which", "city", "is", "living", "most", "of", "staffs?", "Are", "Listing", "the", "city", "name", "and", "number", "of", "staffs." ]
driving_school
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;
In city do the most employees live and how many them which is living there?
[ "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", ";" ]
[ "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", "value" ]
[ "In", "city", "do", "the", "most", "employees", "live", "and", "how", "many", "them", "which", "is", "living", "there?" ]
driving_school
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;
Are Listing the have between 2 to 4 staffs states a-living there.
[ "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", ";" ]
[ "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", "value", "and", "value" ]
[ "Are", "Listing", "the", "have", "between", "2", "to", "4", "staffs", "states", "a-living", "there." ]
driving_school
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;
What-all are the names of the that have 2 to 4 employees states a-living there?
[ "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", ";" ]
[ "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", "value", "and", "value" ]
[ "What-all", "are", "the", "names", "of", "the", "that", "have", "2", "to", "4", "employees", "states", "a-living", "there?" ]
driving_school
SELECT first_name , last_name FROM Customers;
Are Listing the first and last name all customers name.
[ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", ";" ]
[ "select", "first_name", ",", "last_name", "from", "customers" ]
[ "Are", "Listing", "the", "first", "and", "last", "name", "all", "customers", "name." ]
driving_school
SELECT first_name , last_name FROM Customers;
What-all are the first and last names for all customers?
[ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", ";" ]
[ "select", "first_name", ",", "last_name", "from", "customers" ]
[ "What-all", "are", "the", "first", "and", "last", "names", "for", "all", "customers?" ]
driving_school
SELECT email_address , date_of_birth FROM Customers WHERE first_name = "Carole"
List email address and birthday of customer whose first name as Carole.
[ "SELECT", "email_address", ",", "date_of_birth", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''" ]
[ "select", "email_address", ",", "date_of_birth", "from", "customers", "where", "first_name", "=", "value" ]
[ "List", "email", "address", "and", "birthday", "of", "customer", "whose", "first", "name", "as", "Carole." ]
driving_school
SELECT email_address , date_of_birth FROM Customers WHERE first_name = "Carole"
What-all are the email addresses and date of births for all customers which have a first name of Carole?
[ "SELECT", "email_address", ",", "date_of_birth", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''" ]
[ "select", "email_address", ",", "date_of_birth", "from", "customers", "where", "first_name", "=", "value" ]
[ "What-all", "are", "the", "email", "addresses", "and", "date", "of", "births", "for", "all", "customers", "which", "have", "a", "first", "name", "of", "Carole?" ]
driving_school
SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000;
List phone number and email address of more than 2000 outstanding balance customer.
[ "SELECT", "phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "amount_outstanding", ">", "2000", ";" ]
[ "select", "phone_number", ",", "email_address", "from", "customers", "where", "amount_outstanding", ">", "value" ]
[ "List", "phone", "number", "and", "email", "address", "of", "more", "than", "2000", "outstanding", "balance", "customer." ]
driving_school
SELECT phone_number , email_address FROM Customers WHERE amount_outstanding > 2000;
What-all are the phone numbers and email addresses of all customers have an outstanding balance of more than 2000?
[ "SELECT", "phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "amount_outstanding", ">", "2000", ";" ]
[ "select", "phone_number", ",", "email_address", "from", "customers", "where", "amount_outstanding", ">", "value" ]
[ "What-all", "are", "the", "phone", "numbers", "and", "email", "addresses", "of", "all", "customers", "have", "an", "outstanding", "balance", "of", "more", "than", "2000?" ]
driving_school
SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = "Marina" OR last_name = "Kohler"
What-all is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?
[ "SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''" ]
[ "select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value" ]
[ "What-all", "is", "the", "status", "code,", "mobile", "phone", "number", "and", "email", "address", "of", "customer", "with", "last", "name", "as", "Kohler", "or", "first", "name", "as", "Marina?" ]
driving_school
SELECT customer_status_code , cell_mobile_phone_number , email_address FROM Customers WHERE first_name = "Marina" OR last_name = "Kohler"
What-all is the status code, phone number, and email address of the customer whose-all last name is Kohler or whose-all first name is Marina?
[ "SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''" ]
[ "select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value" ]
[ "What-all", "is", "the", "status", "code,", "phone", "number,", "and", "email", "address", "of", "the", "customer", "whose-all", "last", "name", "is", "Kohler", "or", "whose-all", "first", "name", "is", "Marina?" ]
driving_school
SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'
When are the birthdays of which are classified them 'Good Customer' status customer?
[ "SELECT", "date_of_birth", "FROM", "Customers", "WHERE", "customer_status_code", "=", "'Good", "Customer", "'" ]
[ "select", "date_of_birth", "from", "customers", "where", "customer_status_code", "=", "value" ]
[ "When", "are", "the", "birthdays", "of", "which", "are", "classified", "them", "'Good", "Customer'", "status", "customer?" ]
driving_school
SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'
What-all is the date of birth of every customer whose status code is 'Good Customer'?
[ "SELECT", "date_of_birth", "FROM", "Customers", "WHERE", "customer_status_code", "=", "'Good", "Customer", "'" ]
[ "select", "date_of_birth", "from", "customers", "where", "customer_status_code", "=", "value" ]
[ "What-all", "is", "the", "date", "of", "birth", "of", "every", "customer", "whose", "status", "code", "is", "'Good", "Customer'?" ]
driving_school
SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard";
When did customer with first name as Carole and last name as Bernhard become a customer?
[ "SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''", "AND", "last_name", "=", "``", "Bernhard", "''", ";" ]
[ "select", "date_became_customer", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "When", "did", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "become", "a", "customer?" ]
driving_school
SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard";
When did Carole Bernhard first become a customers?
[ "SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''", "AND", "last_name", "=", "``", "Bernhard", "''", ";" ]
[ "select", "date_became_customer", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "When", "did", "Carole", "Bernhard", "first", "become", "a", "customers?" ]
driving_school
SELECT count(*) FROM Customers;
How many customers in total?
[ "SELECT", "count", "(", "*", ")", "FROM", "Customers", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers" ]
[ "How", "many", "customers", "in", "total?" ]
driving_school
SELECT count(*) FROM Customers;
How many customers are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "Customers", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers" ]
[ "How", "many", "customers", "are", "there?" ]
driving_school
SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;
List all customer status codes and the number of customers a-having each status code.
[ "SELECT", "customer_status_code", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "customer_status_code", ";" ]
[ "select", "customer_status_code", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "customer_status_code" ]
[ "List", "all", "customer", "status", "codes", "and", "the", "number", "of", "customers", "a-having", "each", "status", "code." ]
driving_school
SELECT customer_status_code , count(*) FROM Customers GROUP BY customer_status_code;
For each customer status code, how many customers are a-classified that there way?
[ "SELECT", "customer_status_code", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "customer_status_code", ";" ]
[ "select", "customer_status_code", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "customer_status_code" ]
[ "For", "each", "customer", "status", "code,", "how", "many", "customers", "are", "a-classified", "that", "there", "way?" ]
driving_school
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
Which customer status code has least number of customers?
[ "SELECT", "customer_status_code", "FROM", "Customers", "GROUP", "BY", "customer_status_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ]
[ "select", "customer_status_code", "from", "customers", "group", "by", "customer_status_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "Which", "customer", "status", "code", "has", "least", "number", "of", "customers?" ]
driving_school
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY count(*) ASC LIMIT 1;
What-all is the status code with the least customers number?
[ "SELECT", "customer_status_code", "FROM", "Customers", "GROUP", "BY", "customer_status_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ]
[ "select", "customer_status_code", "from", "customers", "group", "by", "customer_status_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "What-all", "is", "the", "status", "code", "with", "the", "least", "customers", "number?" ]
driving_school
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";
How many lessons taken by customers with first name as Rylan and last name as Goodwin was completed?
[ "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", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "t1", ".", "lesson_status_code", "=", "value" ]
[ "How", "many", "lessons", "taken", "by", "customers", "with", "first", "name", "as", "Rylan", "and", "last", "name", "as", "Goodwin", "was", "completed?" ]
driving_school
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";
How many lessons did the customers Ryan Goodwin complete?
[ "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", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "t1", ".", "lesson_status_code", "=", "value" ]
[ "How", "many", "lessons", "did", "the", "customers", "Ryan", "Goodwin", "complete?" ]
driving_school
SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;
What-all is maximum, minimum and average amount of outstanding of customers?
[ "SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";" ]
[ "select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers" ]
[ "What-all", "is", "maximum,", "minimum", "and", "average", "amount", "of", "outstanding", "of", "customers?" ]
driving_school
SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;
What-all is the maximum, minimum, and average amount of moneys a-outsanding for all customers?
[ "SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";" ]
[ "select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers" ]
[ "What-all", "is", "the", "maximum,", "minimum,", "and", "average", "amount", "of", "moneys", "a-outsanding", "for", "all", "customers?" ]
driving_school
SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;
List the first name and last name of customers have the amount of outstanding between 1000 and 3000.
[ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", "WHERE", "amount_outstanding", "BETWEEN", "1000", "AND", "3000", ";" ]
[ "select", "first_name", ",", "last_name", "from", "customers", "where", "amount_outstanding", "between", "value", "and", "value" ]
[ "List", "the", "first", "name", "and", "last", "name", "of", "customers", "have", "the", "amount", "of", "outstanding", "between", "1000", "and", "3000." ]
driving_school
SELECT first_name , last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000;
What-all are the first and last names of all customers with between 1000 and 3000 dollar outstanding?
[ "SELECT", "first_name", ",", "last_name", "FROM", "Customers", "WHERE", "amount_outstanding", "BETWEEN", "1000", "AND", "3000", ";" ]
[ "select", "first_name", ",", "last_name", "from", "customers", "where", "amount_outstanding", "between", "value", "and", "value" ]
[ "What-all", "are", "the", "first", "and", "last", "names", "of", "all", "customers", "with", "between", "1000", "and", "3000", "dollar", "outstanding?" ]
driving_school
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";
List first name and last name of customers had lived in city Lockmanfurt.
[ "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", "''", ";" ]
[ "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", "=", "value" ]
[ "List", "first", "name", "and", "last", "name", "of", "customers", "had", "lived", "in", "city", "Lockmanfurt." ]
driving_school
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";
What-all are the first and last names of all customers which had lived in Lockmanfurt?
[ "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", "''", ";" ]
[ "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", "=", "value" ]
[ "What-all", "are", "the", "first", "and", "last", "names", "of", "all", "customers", "which", "had", "lived", "in", "Lockmanfurt?" ]
driving_school
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"
Which country does customer with first name as Carole and last name as Bernhard live in?
[ "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", "''" ]
[ "select", "t2", ".", "country", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "Which", "country", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "live", "in?" ]
driving_school
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"
What-all is the country in which the customer Carole live?
[ "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", "''" ]
[ "select", "t2", ".", "country", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "What-all", "is", "the", "country", "in", "which", "the", "customer", "Carole", "live?" ]
driving_school
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"
What-all is zip code of customer with first name as Carole and last name as Bernhard?
[ "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", "''" ]
[ "select", "t2", ".", "zip_postcode", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "What-all", "is", "zip", "code", "of", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard?" ]
driving_school
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"
What-all are the zip codes of the customers Carole Bernhard?
[ "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", "''" ]
[ "select", "t2", ".", "zip_postcode", "from", "customers", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "customer_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "What-all", "are", "the", "zip", "codes", "of", "the", "customers", "Carole", "Bernhard?" ]
driving_school
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;
Which city does has most number of customers?
[ "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", ";" ]
[ "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", "value" ]
[ "Which", "city", "does", "has", "most", "number", "of", "customers?" ]
driving_school
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;
What-all is the city with the most customers?
[ "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", ";" ]
[ "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", "value" ]
[ "What-all", "is", "the", "city", "with", "the", "most", "customers?" ]
driving_school
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"
How much in total does customer with first name as Carole and last name as Bernhard had paid?
[ "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", "''" ]
[ "select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "How", "much", "in", "total", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "had", "paid?" ]
driving_school
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"
What-all is the total amount of moeny a-paid by the customer Carole Bernhard?
[ "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", "''" ]
[ "select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "What-all", "is", "the", "total", "amount", "of", "moeny", "a-paid", "by", "the", "customer", "Carole", "Bernhard?" ]
driving_school
SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );
Are Listing the number of customers did ain't payment no history.
[ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")" ]
[ "Are", "Listing", "the", "number", "of", "customers", "did", "ain't", "payment", "no", "history." ]
driving_school
SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );
How many customers have no payment histories?
[ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")" ]
[ "How", "many", "customers", "have", "no", "payment", "histories?" ]
driving_school
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;
List first name and last name of customers have more than 2 payments.
[ "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", ";" ]
[ "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", "(", "*", ")", ">", "value" ]
[ "List", "first", "name", "and", "last", "name", "of", "customers", "have", "more", "than", "2", "payments." ]
driving_school
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;
What-all are the first and last names of all customers with more than 2 payment?
[ "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", ";" ]
[ "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", "(", "*", ")", ">", "value" ]
[ "What-all", "are", "the", "first", "and", "last", "names", "of", "all", "customers", "with", "more", "than", "2", "payment?" ]
driving_school
SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;
Are Listing all payment methods and number of payments a-using each payment methods.
[ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code", ";" ]
[ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customer_payments", "group", "by", "payment_method_code" ]
[ "Are", "Listing", "all", "payment", "methods", "and", "number", "of", "payments", "a-using", "each", "payment", "methods." ]
driving_school
SELECT payment_method_code , count(*) FROM Customer_Payments GROUP BY payment_method_code;
For each payment method, how many payments have been made?
[ "SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code", ";" ]
[ "select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customer_payments", "group", "by", "payment_method_code" ]
[ "For", "each", "payment", "method,", "how", "many", "payments", "have", "been", "made?" ]
driving_school
SELECT count(*) FROM Lessons WHERE lesson_status_code = "Cancelled";
How many lessons was in cancelled state?
[ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "``", "Cancelled", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "where", "lesson_status_code", "=", "value" ]
[ "How", "many", "lessons", "was", "in", "cancelled", "state?" ]
driving_school
SELECT count(*) FROM Lessons WHERE lesson_status_code = "Cancelled";
How many lessons done a-been a-cancelled?
[ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "``", "Cancelled", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "where", "lesson_status_code", "=", "value" ]
[ "How", "many", "lessons", "done", "a-been", "a-cancelled?" ]