db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
19
228
query_toks
sequence
query_toks_no_value
sequence
question_toks
sequence
activity_1
SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'
What-all are the first names of the faculty members a-playing both Canoeing and Kayaking?
[ "SELECT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "INTERSECT", "SELECT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Kayaking", "'" ]
[ "select", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "intersect", "select", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value" ]
[ "What-all", "are", "the", "first", "names", "of", "the", "faculty", "members", "a-playing", "both", "Canoeing", "and", "Kayaking?" ]
activity_1
SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'
Find the ids of the students which participate in Canoeing and Kayaking.
[ "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Canoeing", "'", "INTERSECT", "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Kayaking", "'" ]
[ "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value" ]
[ "Find", "the", "ids", "of", "the", "students", "which", "participate", "in", "Canoeing", "and", "Kayaking." ]
activity_1
SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'
Which students participate in both Canoeing and Kayaking as theirn activities? Tell me theirn student ids.
[ "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Canoeing", "'", "INTERSECT", "SELECT", "T1.stuid", "FROM", "participates_in", "AS", "T1", "JOIN", "activity", "AS", "T2", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T2.activity_name", "=", "'Kayaking", "'" ]
[ "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "participates_in", "as", "t1", "join", "activity", "as", "t2", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t2", ".", "activity_name", "=", "value" ]
[ "Which", "students", "participate", "in", "both", "Canoeing", "and", "Kayaking", "as", "theirn", "activities?", "Tell", "me", "theirn", "student", "ids." ]
flight_4
SELECT name FROM airports WHERE city = 'Goroka'
Are Finding the name of the airport in the city of Goroka.
[ "SELECT", "name", "FROM", "airports", "WHERE", "city", "=", "'Goroka", "'" ]
[ "select", "name", "from", "airports", "where", "city", "=", "value" ]
[ "Are", "Finding", "the", "name", "of", "the", "airport", "in", "the", "city", "of", "Goroka." ]
flight_4
SELECT name FROM airports WHERE city = 'Goroka'
What-all are the names of the airports in the city of Goroka?
[ "SELECT", "name", "FROM", "airports", "WHERE", "city", "=", "'Goroka", "'" ]
[ "select", "name", "from", "airports", "where", "city", "=", "value" ]
[ "What-all", "are", "the", "names", "of", "the", "airports", "in", "the", "city", "of", "Goroka?" ]
flight_4
SELECT name , city , country , elevation FROM airports WHERE city = 'New York'
Are Finding the name, city, country, and altitude (or elevation) of the airports in the city of New York.
[ "SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "'New", "York", "'" ]
[ "select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value" ]
[ "Are", "Finding", "the", "name,", "city,", "country,", "and", "altitude", "(or", "elevation)", "of", "the", "airports", "in", "the", "city", "of", "New", "York." ]
flight_4
SELECT name , city , country , elevation FROM airports WHERE city = 'New York'
What-all is the name, city, country, and elevation for every airport in the city of New York?
[ "SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "'New", "York", "'" ]
[ "select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value" ]
[ "What-all", "is", "the", "name,", "city,", "country,", "and", "elevation", "for", "every", "airport", "in", "the", "city", "of", "New", "York?" ]
flight_4
SELECT count(*) FROM airlines
How many airlines are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "airlines" ]
[ "select", "count", "(", "*", ")", "from", "airlines" ]
[ "How", "many", "airlines", "are", "there?" ]
flight_4
SELECT count(*) FROM airlines
What-all is the total number of airlines?
[ "SELECT", "count", "(", "*", ")", "FROM", "airlines" ]
[ "select", "count", "(", "*", ")", "from", "airlines" ]
[ "What-all", "is", "the", "total", "number", "of", "airlines?" ]
flight_4
SELECT count(*) FROM airlines WHERE country = 'Russia'
How many airlines does It is that russia has?
[ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "WHERE", "country", "=", "'Russia", "'" ]
[ "select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value" ]
[ "How", "many", "airlines", "does", "It", "is", "", "that", "russia", "has?" ]
flight_4
SELECT count(*) FROM airlines WHERE country = 'Russia'
What-all is the number of airlines based in Russia?
[ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "WHERE", "country", "=", "'Russia", "'" ]
[ "select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value" ]
[ "What-all", "is", "the", "number", "of", "airlines", "based", "in", "Russia?" ]
flight_4
SELECT max(elevation) FROM airports WHERE country = 'Iceland'
What-all is the maximum elevation of all airports in the country of Iceland?
[ "SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "'Iceland", "'" ]
[ "select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value" ]
[ "What-all", "is", "the", "maximum", "elevation", "of", "all", "airports", "in", "the", "country", "of", "Iceland?" ]
flight_4
SELECT max(elevation) FROM airports WHERE country = 'Iceland'
What-all are the most highest elevations of an airport in the countrys of Iceland?
[ "SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "'Iceland", "'" ]
[ "select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value" ]
[ "What-all", "are", "the", "most", "highest", "elevations", "of", "an", "airport", "in", "the", "countrys", "of", "Iceland?" ]
flight_4
SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina'
Find the name of the airports a-located in Cuba or Argentina.
[ "SELECT", "name", "FROM", "airports", "WHERE", "country", "=", "'Cuba", "'", "OR", "country", "=", "'Argentina", "'" ]
[ "select", "name", "from", "airports", "where", "country", "=", "value", "or", "country", "=", "value" ]
[ "Find", "the", "name", "of", "the", "airports", "a-located", "in", "Cuba", "or", "Argentina." ]
flight_4
SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina'
What-all are the names of all airports in Cuba or Argentina?
[ "SELECT", "name", "FROM", "airports", "WHERE", "country", "=", "'Cuba", "'", "OR", "country", "=", "'Argentina", "'" ]
[ "select", "name", "from", "airports", "where", "country", "=", "value", "or", "country", "=", "value" ]
[ "What-all", "are", "the", "names", "of", "all", "airports", "in", "Cuba", "or", "Argentina?" ]
flight_4
SELECT country FROM airlines WHERE name LIKE 'Orbit%'
Find the country of the airlines whose name starts with 'Orbit'.
[ "SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'" ]
[ "select", "country", "from", "airlines", "where", "name", "like", "value" ]
[ "Find", "the", "country", "of", "the", "airlines", "whose", "name", "starts", "with", "'Orbit'." ]
flight_4
SELECT country FROM airlines WHERE name LIKE 'Orbit%'
What-all are the countries of all whose start Orbit airlines?
[ "SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'" ]
[ "select", "country", "from", "airlines", "where", "name", "like", "value" ]
[ "What-all", "are", "the", "countries", "of", "all", "whose", "start", "Orbit", "airlines?" ]
flight_4
SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50
Find the name of airports whose altitude is between -50 and 50.
[ "SELECT", "name", "FROM", "airports", "WHERE", "elevation", "BETWEEN", "-50", "AND", "50" ]
[ "select", "name", "from", "airports", "where", "elevation", "between", "value", "and", "value" ]
[ "Find", "the", "name", "of", "airports", "whose", "altitude", "is", "between", "-50", "and", "50." ]
flight_4
SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50
What-all are the names of all airports what's is between -50 and 50?
[ "SELECT", "name", "FROM", "airports", "WHERE", "elevation", "BETWEEN", "-50", "AND", "50" ]
[ "select", "name", "from", "airports", "where", "elevation", "between", "value", "and", "value" ]
[ "What-all", "are", "the", "names", "of", "all", "airports", "what's", "is", "between", "-50", "and", "50?" ]
flight_4
SELECT country FROM airports ORDER BY elevation DESC LIMIT 1
Which country is the airport has the most highest altitude located in?
[ "SELECT", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ]
[ "select", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ]
[ "Which", "country", "is", "the", "airport", "has", "the", "most", "highest", "altitude", "located", "in?" ]
flight_4
SELECT country FROM airports ORDER BY elevation DESC LIMIT 1
What-all are the countrys of the airport with the most highest elevations?
[ "SELECT", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ]
[ "select", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ]
[ "What-all", "are", "the", "countrys", "of", "the", "airport", "with", "the", "most", "highest", "elevations?" ]
flight_4
SELECT count(*) FROM airports WHERE name LIKE '%International%'
Find the number of airports that's name contain the word what'sInternationalthat's.
[ "SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'" ]
[ "select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value" ]
[ "Find", "the", "number", "of", "airports", "that's", "name", "contain", "the", "word", "what'sInternationalthat's." ]
flight_4
SELECT count(*) FROM airports WHERE name LIKE '%International%'
It is the word Interanation in them that how many airports ' names have?
[ "SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'" ]
[ "select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value" ]
[ "It", "is", "the", "word", "Interanation", "in", "them", "that", "how", "many", "airports", "'", "names", "", "have?" ]
flight_4
SELECT count(DISTINCT city) FROM airports WHERE country = 'Greenland'
How many different cities do have some airport in the country of Greenland?
[ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "airports", "WHERE", "country", "=", "'Greenland", "'" ]
[ "select", "count", "(", "distinct", "city", ")", "from", "airports", "where", "country", "=", "value" ]
[ "How", "many", "different", "cities", "do", "have", "some", "airport", "in", "the", "country", "of", "Greenland?" ]
flight_4
SELECT count(DISTINCT city) FROM airports WHERE country = 'Greenland'
In how many cities is it airports in the country of Greenland?
[ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "airports", "WHERE", "country", "=", "'Greenland", "'" ]
[ "select", "count", "(", "distinct", "city", ")", "from", "airports", "where", "country", "=", "value" ]
[ "In", "how", "many", "cities", "is", "it", "airports", "in", "the", "country", "of", "Greenland?" ]
flight_4
SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
Find the number of routes operated by American Airlines.
[ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ]
[ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ]
[ "Find", "the", "number", "of", "routes", "operated", "by", "American", "Airlines." ]
flight_4
SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
How many routes does American Airlines are operating?
[ "SELECT", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ]
[ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ]
[ "How", "many", "routes", "does", "American", "Airlines", "are", "operating?" ]
flight_4
SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada'
Are Finding the number of routes that's destination airports are in Canada.
[ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "country", "=", "'Canada", "'" ]
[ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "value" ]
[ "Are", "Finding", "the", "number", "of", "routes", "that's", "destination", "airports", "are", "in", "Canada." ]
flight_4
SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada'
How many routes end in a Canadian airport?
[ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "country", "=", "'Canada", "'" ]
[ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "value" ]
[ "How", "many", "routes", "end", "in", "a", "Canadian", "airport?" ]
flight_4
SELECT name , city , country FROM airports ORDER BY elevation LIMIT 1
Are Finding the name, city, and country of the airport has the most lowest altitude.
[ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "LIMIT", "1" ]
[ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "limit", "value" ]
[ "Are", "Finding", "the", "name,", "city,", "and", "country", "of", "the", "airport", "has", "the", "most", "lowest", "altitude." ]
flight_4
SELECT name , city , country FROM airports ORDER BY elevation LIMIT 1
What-all is the name, city, and country of the airport with the most lowest altitude?
[ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "LIMIT", "1" ]
[ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "limit", "value" ]
[ "What-all", "is", "the", "name,", "city,", "and", "country", "of", "the", "airport", "with", "the", "most", "lowest", "altitude?" ]
flight_4
SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1
Are Finding the name, city, and country of the airport that has the most highest latitude.
[ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ]
[ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "name,", "city,", "and", "country", "of", "the", "airport", "that", "has", "the", "most", "highest", "latitude." ]
flight_4
SELECT name , city , country FROM airports ORDER BY elevation DESC LIMIT 1
What-all is the name, city, and country of the the most highest elevation airport?
[ "SELECT", "name", ",", "city", ",", "country", "FROM", "airports", "ORDER", "BY", "elevation", "DESC", "LIMIT", "1" ]
[ "select", "name", ",", "city", ",", "country", "from", "airports", "order", "by", "elevation", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name,", "city,", "and", "country", "of", "the", "the", "most", "highest", "elevation", "airport?" ]
flight_4
SELECT T1.name , T1.city , T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1
Find the name and city of the airport is the destination of the most number of routes.
[ "SELECT", "T1.name", ",", "T1.city", ",", "T2.dst_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "GROUP", "BY", "T2.dst_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "dst_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Find", "the", "name", "and", "city", "of", "the", "airport", "is", "the", "destination", "of", "the", "most", "number", "of", "routes." ]
flight_4
SELECT T1.name , T1.city , T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1
What-all is the name and city of the airport that the most are ending at?
[ "SELECT", "T1.name", ",", "T1.city", ",", "T2.dst_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "GROUP", "BY", "T2.dst_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "dst_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "and", "city", "of", "the", "airport", "that", "the", "most", "are", "ending", "at?" ]
flight_4
SELECT T1.name , T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10
Are Finding the names of the top 10 airline that is operating the most number of routes.
[ "SELECT", "T1.name", ",", "T2.alid", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T2.alid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "10" ]
[ "select", "t1", ".", "name", ",", "t2", ".", "alid", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t2", ".", "alid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "names", "of", "the", "top", "10", "airline", "that", "is", "operating", "the", "most", "number", "of", "routes." ]
flight_4
SELECT T1.name , T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10
For the airline ids with the top 10 most route a-operated, what are their names?
[ "SELECT", "T1.name", ",", "T2.alid", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T2.alid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "10" ]
[ "select", "t1", ".", "name", ",", "t2", ".", "alid", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t2", ".", "alid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "For", "the", "airline", "ids", "with", "the", "top", "10", "most", "route", "a-operated,", "what", "are", "their", "names?" ]
flight_4
SELECT T1.name , T1.city , T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1
Are Finding the name and city of the airport is the source for the most number of flight routes.
[ "SELECT", "T1.name", ",", "T1.city", ",", "T2.src_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T2.src_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "src_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t2", ".", "src_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "name", "and", "city", "of", "the", "airport", "is", "the", "source", "for", "the", "most", "number", "of", "flight", "routes." ]
flight_4
SELECT T1.name , T1.city , T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1
What-all is the name and city of the airport from most of the routes are starting?
[ "SELECT", "T1.name", ",", "T1.city", ",", "T2.src_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T2.src_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "src_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t2", ".", "src_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "and", "city", "of", "the", "airport", "from", "most", "of", "the", "routes", "are", "starting?" ]
flight_4
SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
Are Finding the number of different airports which are the destinations of the American Airlines.
[ "SELECT", "count", "(", "DISTINCT", "dst_apid", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ]
[ "select", "count", "(", "distinct", "dst_apid", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ]
[ "Are", "Finding", "the", "number", "of", "different", "airports", "which", "are", "the", "destinations", "of", "the", "American", "Airlines." ]
flight_4
SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'
What-all is the number of different different that are destinations American Airlines airports?
[ "SELECT", "count", "(", "DISTINCT", "dst_apid", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "WHERE", "T1.name", "=", "'American", "Airlines", "'" ]
[ "select", "count", "(", "distinct", "dst_apid", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "where", "t1", ".", "name", "=", "value" ]
[ "What-all", "is", "the", "number", "of", "different", "different", "that", "are", "destinations", "American", "Airlines", "airports?" ]
flight_4
SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1
It is the most number of airlines that which countries has?
[ "SELECT", "country", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "country", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "It", "is", "the", "most", "number", "of", "airlines", "that", "which", "countries", "has?" ]
flight_4
SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1
What-all is the name of the country with the most number of home airlines?
[ "SELECT", "country", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "country", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "country", "with", "the", "most", "number", "of", "home", "airlines?" ]
flight_4
SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1
Which countries has the most number of airlines what's active is what'sY'?
[ "SELECT", "country", "FROM", "airlines", "WHERE", "active", "=", "'Y", "'", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "country", "from", "airlines", "where", "active", "=", "value", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "countries", "has", "the", "most", "number", "of", "airlines", "what's", "active", "is", "what'sY'?" ]
flight_4
SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY count(*) DESC LIMIT 1
What-all are the countries with the most airlines whose active is Y?
[ "SELECT", "country", "FROM", "airlines", "WHERE", "active", "=", "'Y", "'", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "country", "from", "airlines", "where", "active", "=", "value", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "are", "the", "countries", "with", "the", "most", "airlines", "whose", "active", "is", "Y?" ]
flight_4
SELECT country , count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC
List all countries and theirn number of airlines in the a-descending order of number of airlines.
[ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ]
[ "List", "all", "countries", "and", "theirn", "number", "of", "airlines", "in", "the", "a-descending", "order", "of", "number", "of", "airlines." ]
flight_4
SELECT country , count(*) FROM airlines GROUP BY country ORDER BY count(*) DESC
How many airlines operate out of each country in a-descending order?
[ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ]
[ "How", "many", "airlines", "operate", "out", "of", "each", "country", "in", "a-descending", "order?" ]
flight_4
SELECT count(*) , country FROM airports GROUP BY country ORDER BY count(*) DESC
How many airports are there per country? Order the countries by a-decreasing number of airports.
[ "SELECT", "count", "(", "*", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "count", "(", "*", ")", ",", "country", "from", "airports", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ]
[ "How", "many", "airports", "are", "there", "per", "country?", "Order", "the", "countries", "by", "a-decreasing", "number", "of", "airports." ]
flight_4
SELECT count(*) , country FROM airports GROUP BY country ORDER BY count(*) DESC
What-all is the number of airports per country, ordered from most for to least?
[ "SELECT", "count", "(", "*", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "count", "(", "*", ")", ",", "country", "from", "airports", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc" ]
[ "What-all", "is", "the", "number", "of", "airports", "per", "country,", "ordered", "from", "most", "for", "to", "least?" ]
flight_4
SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC
How many airports are there per city in the United States? Order the cities by decreasing number of airports.
[ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "count", "(", "*", ")", ",", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "order", "by", "count", "(", "*", ")", "desc" ]
[ "How", "many", "airports", "are", "there", "per", "city", "in", "the", "United", "States?", "Order", "the", "cities", "by", "decreasing", "number", "of", "airports." ]
flight_4
SELECT count(*) , city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY count(*) DESC
How many airports are there per city in the US order from most to least?
[ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "count", "(", "*", ")", ",", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "order", "by", "count", "(", "*", ")", "desc" ]
[ "How", "many", "airports", "are", "there", "per", "city", "in", "the", "US", "order", "from", "most", "to", "least?" ]
flight_4
SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3
Return the cities with more than 3 airports in the United States.
[ "SELECT", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3" ]
[ "select", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ]
[ "Return", "the", "cities", "with", "more", "than", "3", "airports", "in", "the", "United", "States." ]
flight_4
SELECT city FROM airports WHERE country = 'United States' GROUP BY city HAVING count(*) > 3
What-all is the number of cities in the United States with more than 3 airports?
[ "SELECT", "city", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3" ]
[ "select", "city", "from", "airports", "where", "country", "=", "value", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ]
[ "What-all", "is", "the", "number", "of", "cities", "in", "the", "United", "States", "with", "more", "than", "3", "airports?" ]
flight_4
SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3)
How many cities is there that have more than 3 airport?
[ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3", ")" ]
[ "select", "count", "(", "*", ")", "from", "(", "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", ")" ]
[ "How", "many", "cities", "is", "there", "that", "have", "more", "than", "3", "airport?" ]
flight_4
SELECT count(*) FROM (SELECT city FROM airports GROUP BY city HAVING count(*) > 3)
What-all is the count of more than 3 airports cities?
[ "SELECT", "count", "(", "*", ")", "FROM", "(", "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "3", ")" ]
[ "select", "count", "(", "*", ")", "from", "(", "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", ")" ]
[ "What-all", "is", "the", "count", "of", "more", "than", "3", "airports", "cities?" ]
flight_4
SELECT city , count(*) FROM airports GROUP BY city HAVING count(*) > 1
List the cities have more than one airport and number of airports.
[ "SELECT", "city", ",", "count", "(", "*", ")", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "1" ]
[ "select", "city", ",", "count", "(", "*", ")", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ]
[ "List", "the", "cities", "have", "more", "than", "one", "airport", "and", "number", "of", "airports." ]
flight_4
SELECT city , count(*) FROM airports GROUP BY city HAVING count(*) > 1
What-all are the names of all cities with more than one airport and how many airports do it is that they have?
[ "SELECT", "city", ",", "count", "(", "*", ")", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "1" ]
[ "select", "city", ",", "count", "(", "*", ")", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ]
[ "What-all", "are", "the", "names", "of", "all", "cities", "with", "more", "than", "one", "airport", "and", "how", "many", "airports", "do", "it", "is", "", "that", "they", "have?" ]
flight_4
SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(*)
List the cities have more than 2 airports sorted by the number of airports.
[ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "2", "ORDER", "BY", "count", "(", "*", ")" ]
[ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", "order", "by", "count", "(", "*", ")" ]
[ "List", "the", "cities", "have", "more", "than", "2", "airports", "sorted", "by", "the", "number", "of", "airports." ]
flight_4
SELECT city FROM airports GROUP BY city HAVING count(*) > 2 ORDER BY count(*)
What-all are the cities that have more than 2 airport sorted by number of airports?
[ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "2", "ORDER", "BY", "count", "(", "*", ")" ]
[ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value", "order", "by", "count", "(", "*", ")" ]
[ "What-all", "are", "the", "cities", "that", "have", "more", "than", "2", "airport", "sorted", "by", "number", "of", "airports?" ]
flight_4
SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name
Are Finding the number of routes for each source airport and the airport name.
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name" ]
[ "Are", "Finding", "the", "number", "of", "routes", "for", "each", "source", "airport", "and", "the", "airport", "name." ]
flight_4
SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name
For each airport name, how many routes start at that there airport?
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name" ]
[ "For", "each", "airport", "name,", "how", "many", "routes", "start", "at", "that", "there", "airport?" ]
flight_4
SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC
Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc" ]
[ "Find", "the", "number", "of", "routes", "and", "airport", "name", "for", "each", "source", "airport,", "order", "the", "results", "by", "decreasing", "number", "of", "routes." ]
flight_4
SELECT count(*) , T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY count(*) DESC
For each airport name, how many routes start at that there airport, a-ordered from most to least?
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc" ]
[ "For", "each", "", "airport", "name,", "how", "many", "routes", "start", "at", "that", "there", "airport,", "a-ordered", "from", "most", "to", "least?" ]
flight_4
SELECT avg(elevation) , country FROM airports GROUP BY country
Find the average elevation of all airports for each country.
[ "SELECT", "avg", "(", "elevation", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country" ]
[ "select", "avg", "(", "elevation", ")", ",", "country", "from", "airports", "group", "by", "country" ]
[ "Find", "the", "average", "elevation", "of", "all", "airports", "for", "each", "country." ]
flight_4
SELECT avg(elevation) , country FROM airports GROUP BY country
For each country, what is the average elevation of that there country's airports?
[ "SELECT", "avg", "(", "elevation", ")", ",", "country", "FROM", "airports", "GROUP", "BY", "country" ]
[ "select", "avg", "(", "elevation", ")", ",", "country", "from", "airports", "group", "by", "country" ]
[ "For", "each", "country,", "what", "is", "the", "average", "elevation", "of", "that", "there", "country's", "airports?" ]
flight_4
SELECT city FROM airports GROUP BY city HAVING count(*) = 2
Find the cities have exactly two airports.
[ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "=", "2" ]
[ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", "=", "value" ]
[ "Find", "the", "cities", "have", "exactly", "two", "airports." ]
flight_4
SELECT city FROM airports GROUP BY city HAVING count(*) = 2
What-all are the cities with exactly two airport?
[ "SELECT", "city", "FROM", "airports", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", "=", "2" ]
[ "select", "city", "from", "airports", "group", "by", "city", "having", "count", "(", "*", ")", "=", "value" ]
[ "What-all", "are", "the", "cities", "with", "exactly", "two", "airport?" ]
flight_4
SELECT T1.country , T1.name , count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name
For each countrys and airline name, how many routes are there?
[ "SELECT", "T1.country", ",", "T1.name", ",", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.country", ",", "T1.name" ]
[ "select", "t1", ".", "country", ",", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "country", ",", "t1", ".", "name" ]
[ "For", "each", "countrys", "and", "airline", "name,", "how", "many", "routes", "are", "there?" ]
flight_4
SELECT T1.country , T1.name , count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country , T1.name
What-all is the total number of routes for each country and airline in that there country?
[ "SELECT", "T1.country", ",", "T1.name", ",", "count", "(", "*", ")", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.country", ",", "T1.name" ]
[ "select", "t1", ".", "country", ",", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "country", ",", "t1", ".", "name" ]
[ "What-all", "is", "the", "total", "number", "of", "routes", "for", "each", "country", "and", "airline", "in", "that", "there", "country?" ]
flight_4
SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'
Find the number of routes with destination airports in Italy.
[ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "WHERE", "T2.country", "=", "'Italy", "'" ]
[ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "where", "t2", ".", "country", "=", "value" ]
[ "Find", "the", "number", "of", "routes", "with", "destination", "airports", "in", "Italy." ]
flight_4
SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid WHERE T2.country = 'Italy'
What-all is the number of routes what's destinations are Italian airports?
[ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "WHERE", "T2.country", "=", "'Italy", "'" ]
[ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "where", "t2", ".", "country", "=", "value" ]
[ "What-all", "is", "the", "number", "of", "routes", "what's", "destinations", "are", "Italian", "airports?" ]
flight_4
SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'
Are Returning the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.
[ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "JOIN", "airlines", "AS", "T3", "ON", "T1.alid", "=", "T3.alid", "WHERE", "T2.country", "=", "'Italy", "'", "AND", "T3.name", "=", "'American", "Airlines", "'" ]
[ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "value", "and", "t3", ".", "name", "=", "value" ]
[ "Are", "Returning", "the", "number", "of", "routes", "with", "destination", "airport", "in", "Italy", "operated", "by", "the", "airline", "with", "name", "'American", "Airlines'." ]
flight_4
SELECT count(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'
What-all is the number of routes operated by the airline American Airlines what's are in Italy?
[ "SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "JOIN", "airlines", "AS", "T3", "ON", "T1.alid", "=", "T3.alid", "WHERE", "T2.country", "=", "'Italy", "'", "AND", "T3.name", "=", "'American", "Airlines", "'" ]
[ "select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "value", "and", "t3", ".", "name", "=", "value" ]
[ "What-all", "is", "the", "number", "of", "routes", "operated", "by", "the", "airline", "American", "Airlines", "what's", "are", "in", "Italy?" ]
flight_4
SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport'
Find the number of routes that have destination John F Kennedy International Airport.
[ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.name", "=", "'John", "F", "Kennedy", "International", "Airport", "'" ]
[ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "name", "=", "value" ]
[ "Find", "the", "number", "of", "routes", "that", "have", "destination", "John", "F", "Kennedy", "International", "Airport." ]
flight_4
SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport'
What-all is the number of routes is ending at John F Kennedy International Airport?
[ "SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.name", "=", "'John", "F", "Kennedy", "International", "Airport", "'" ]
[ "select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "name", "=", "value" ]
[ "What-all", "is", "the", "number", "of", "routes", "is", "ending", "at", "John", "F", "Kennedy", "International", "Airport?" ]
flight_4
SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
Find the number of routes from the United States to Canada.
[ "SELECT", "count", "(", "*", ")", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'Canada", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ]
[ "select", "count", "(", "*", ")", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ]
[ "Find", "the", "number", "of", "routes", "from", "the", "United", "States", "to", "Canada." ]
flight_4
SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
How many routes are going from the United States to Canada?
[ "SELECT", "count", "(", "*", ")", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'Canada", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ]
[ "select", "count", "(", "*", ")", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ]
[ "How", "many", "routes", "are", "going", "from", "the", "United", "States", "to", "Canada?" ]
flight_4
SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
Are Finding the imight would of routes whose source and destination airports are in the United States.
[ "SELECT", "rid", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ]
[ "select", "rid", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ]
[ "Are", "Finding", "the", "imight", "would", "of", "routes", "whose", "source", "and", "destination", "airports", "are", "in", "the", "United", "States." ]
flight_4
SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
What-all is the id of the routes whose source and destination airports are in the United States?
[ "SELECT", "rid", "FROM", "routes", "WHERE", "dst_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")", "AND", "src_apid", "IN", "(", "SELECT", "apid", "FROM", "airports", "WHERE", "country", "=", "'United", "States", "'", ")" ]
[ "select", "rid", "from", "routes", "where", "dst_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")", "and", "src_apid", "in", "(", "select", "apid", "from", "airports", "where", "country", "=", "value", ")" ]
[ "What-all", "is", "the", "id", "of", "the", "routes", "whose", "source", "and", "destination", "airports", "are", "in", "the", "United", "States?" ]
flight_4
SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
Are Finding the name of airline is running the most number of routes.
[ "SELECT", "T1.name", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "name", "of", "airline", "is", "running", "the", "most", "number", "of", "routes." ]
flight_4
SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
What-all is the name of the the most routes airline?
[ "SELECT", "T1.name", "FROM", "airlines", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.alid", "=", "T2.alid", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "airlines", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "alid", "=", "t2", ".", "alid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "the", "most", "routes", "airline?" ]
flight_4
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
Are Finding the busiest source airport is running most number of routes in China.
[ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "busiest", "source", "airport", "is", "running", "most", "number", "of", "routes", "in", "China." ]
flight_4
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
What-all is the name of the airport with the most number of routes that is starting in China?
[ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.src_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "src_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "airport", "with", "the", "most", "number", "of", "routes", "that", "is", "starting", "in", "China?" ]
flight_4
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
Are Finding the most busiest destination airport is running most number of routes in China.
[ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "most", "busiest", "destination", "airport", "is", "running", "most", "number", "of", "routes", "in", "China." ]
flight_4
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
What-all is the name of the airport that is the destination of the most number of routes that start in China?
[ "SELECT", "T1.name", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "T1.country", "=", "'China", "'", "GROUP", "BY", "T1.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "t1", ".", "country", "=", "value", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "airport", "that", "is", "the", "destination", "of", "the", "most", "number", "of", "routes", "that", "start", "in", "China?" ]
tracking_orders
SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1
What-all is the id of the recentest order?
[ "SELECT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "DESC", "LIMIT", "1" ]
[ "select", "order_id", "from", "orders", "order", "by", "date_order_placed", "desc", "limit", "value" ]
[ "What-all", "is", "the", "id", "of", "the", "recentest", "order?" ]
tracking_orders
SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1
Are Finding the imight would of the order maked most recently.
[ "SELECT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "DESC", "LIMIT", "1" ]
[ "select", "order_id", "from", "orders", "order", "by", "date_order_placed", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "imight", "would", "of", "the", "order", "maked", "most", "recently." ]
tracking_orders
SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1
what-all are the order imight would and customer imight would of the oldest order?
[ "SELECT", "order_id", ",", "customer_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "LIMIT", "1" ]
[ "select", "order_id", ",", "customer_id", "from", "orders", "order", "by", "date_order_placed", "limit", "value" ]
[ "what-all", "are", "the", "order", "imight", "would", "and", "customer", "imight", "would", "of", "the", "oldest", "order?" ]
tracking_orders
SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1
Are Finding the order id and customer id associated with the oldest order.
[ "SELECT", "order_id", ",", "customer_id", "FROM", "orders", "ORDER", "BY", "date_order_placed", "LIMIT", "1" ]
[ "select", "order_id", ",", "customer_id", "from", "orders", "order", "by", "date_order_placed", "limit", "value" ]
[ "Are", "Finding", "the", "order", "id", "and", "customer", "id", "associated", "with", "the", "oldest", "order." ]
tracking_orders
SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452"
Find the imight would of the orders whose shipment tracking is "3452".
[ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_tracking_number", "=", "``", "3452", "''" ]
[ "select", "order_id", "from", "shipments", "where", "shipment_tracking_number", "=", "value" ]
[ "Find", "the", "imight", "would", "of", "the", "orders", "whose", "shipment", "tracking", "is", "\"3452\"." ]
tracking_orders
SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452"
Which orders's shipment tracking number is "3452"? Are Giving me the imight would of the orders.
[ "SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_tracking_number", "=", "``", "3452", "''" ]
[ "select", "order_id", "from", "shipments", "where", "shipment_tracking_number", "=", "value" ]
[ "Which", "orders's", "shipment", "tracking", "number", "is", "\"3452\"?", "Are", "Giving", "me", "the", "imight", "would", "of", "the", "orders." ]
tracking_orders
SELECT order_item_id FROM order_items WHERE product_id = 11
Are Finding the all the orders items ids whose products id are 11.
[ "SELECT", "order_item_id", "FROM", "order_items", "WHERE", "product_id", "=", "11" ]
[ "select", "order_item_id", "from", "order_items", "where", "product_id", "=", "value" ]
[ "Are", "Finding", "the", "all", "the", "orders", "items", "ids", "whose", "products", "id", "are", "11." ]
tracking_orders
SELECT order_item_id FROM order_items WHERE product_id = 11
Find all the orders items whose products imight would are 11. What-all are the orders item ids?
[ "SELECT", "order_item_id", "FROM", "order_items", "WHERE", "product_id", "=", "11" ]
[ "select", "order_item_id", "from", "order_items", "where", "product_id", "=", "value" ]
[ "Find", "all", "the", "orders", "items", "whose", "products", "imight", "would", "are", "11.", "What-all", "are", "the", "orders", "item", "ids?" ]
tracking_orders
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Packing"
Are Listing the name of all the distinct customers as have orders with status "Packing".
[ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Packing", "''" ]
[ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ]
[ "Are", "Listing", "the", "name", "of", "all", "the", "distinct", "customers", "as", "have", "orders", "with", "status", "\"Packing\"." ]
tracking_orders
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Packing"
Which customers have orders with status "A-Packing"? Are Giving us the customers names.
[ "SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "Packing", "''" ]
[ "select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ]
[ "Which", "customers", "have", "orders", "with", "status", "\"A-Packing\"?", "Are", "Giving", "us", "the", "customers", "names." ]
tracking_orders
SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road"
Find the details of all the distinct customers which have orders with status "On Road".
[ "SELECT", "DISTINCT", "T1.customer_details", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''" ]
[ "select", "distinct", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ]
[ "Find", "the", "details", "of", "all", "the", "distinct", "customers", "which", "have", "orders", "with", "status", "\"On", "Road\"." ]
tracking_orders
SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road"
What-all are the distinct customers which have orders with status "On Road"? Are Giving us the customer details?
[ "SELECT", "DISTINCT", "T1.customer_details", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.order_status", "=", "``", "On", "Road", "''" ]
[ "select", "distinct", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "order_status", "=", "value" ]
[ "What-all", "are", "the", "distinct", "customers", "which", "have", "orders", "with", "status", "\"On", "Road\"?", "Are", "Giving", "us", "the", "customer", "details?" ]
tracking_orders
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
What-all is the name of the customer which has the most orders?
[ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "customer", "which", "has", "the", "most", "orders?" ]
tracking_orders
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
Which customer had made the most ? Find the customer name orders.
[ "SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "customer", "had", "made", "the", "most", "?", "Find", "the", "customer", "name", "orders." ]
tracking_orders
SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
What-all is the customer id of the customer at has the most orders?
[ "SELECT", "T1.customer_id", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "customer", "id", "of", "the", "customer", "at", "has", "the", "most", "orders?" ]