db_id
stringlengths 4
31
| query
stringlengths 18
577
| question
stringlengths 16
224
| query_toks
listlengths 4
90
| query_toks_no_value
listlengths 4
125
| question_toks
listlengths 4
44
|
---|---|---|---|---|---|
formula_1
|
SELECT DISTINCT forename FROM drivers ORDER BY forename ASC
|
What are the first names of all the different drivers in alphabetical order?
|
[
"SELECT",
"DISTINCT",
"forename",
"FROM",
"drivers",
"ORDER",
"BY",
"forename",
"ASC"
] |
[
"select",
"distinct",
"forename",
"from",
"drivers",
"order",
"by",
"forename",
"asc"
] |
[
"What",
"are",
"the",
"first",
"names",
"of",
"all",
"the",
"different",
"drivers",
"in",
"alphabetical",
"order",
"?"
] |
formula_1
|
SELECT DISTINCT name FROM races ORDER BY name DESC
|
List the names of all distinct races in reversed lexicographic order?
|
[
"SELECT",
"DISTINCT",
"name",
"FROM",
"races",
"ORDER",
"BY",
"name",
"DESC"
] |
[
"select",
"distinct",
"name",
"from",
"races",
"order",
"by",
"name",
"desc"
] |
[
"List",
"the",
"names",
"of",
"all",
"distinct",
"races",
"in",
"reversed",
"lexicographic",
"order",
"?"
] |
formula_1
|
SELECT DISTINCT name FROM races ORDER BY name DESC
|
What are the different names of all the races in reverse alphabetical order?
|
[
"SELECT",
"DISTINCT",
"name",
"FROM",
"races",
"ORDER",
"BY",
"name",
"DESC"
] |
[
"select",
"distinct",
"name",
"from",
"races",
"order",
"by",
"name",
"desc"
] |
[
"What",
"are",
"the",
"different",
"names",
"of",
"all",
"the",
"races",
"in",
"reverse",
"alphabetical",
"order",
"?"
] |
formula_1
|
SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
|
What are the names of races held between 2009 and 2011?
|
[
"SELECT",
"name",
"FROM",
"races",
"WHERE",
"YEAR",
"BETWEEN",
"2009",
"AND",
"2011"
] |
[
"select",
"name",
"from",
"races",
"where",
"year",
"between",
"value",
"and",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"races",
"held",
"between",
"2009",
"and",
"2011",
"?"
] |
formula_1
|
SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
|
What are the names of all races held between 2009 and 2011?
|
[
"SELECT",
"name",
"FROM",
"races",
"WHERE",
"YEAR",
"BETWEEN",
"2009",
"AND",
"2011"
] |
[
"select",
"name",
"from",
"races",
"where",
"year",
"between",
"value",
"and",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"all",
"races",
"held",
"between",
"2009",
"and",
"2011",
"?"
] |
formula_1
|
SELECT name FROM races WHERE TIME > "12:00:00" OR TIME < "09:00:00"
|
What are the names of races held after 12:00:00 or before 09:00:00?
|
[
"SELECT",
"name",
"FROM",
"races",
"WHERE",
"TIME",
">",
"``",
"12:00:00",
"''",
"OR",
"TIME",
"<",
"``",
"09:00:00",
"''"
] |
[
"select",
"name",
"from",
"races",
"where",
"time",
">",
"value",
"or",
"time",
"<",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"races",
"held",
"after",
"12:00:00",
"or",
"before",
"09:00:00",
"?"
] |
formula_1
|
SELECT name FROM races WHERE TIME > "12:00:00" OR TIME < "09:00:00"
|
What are the names of all races that occurred after 12:00:00 or before 09:00:00?
|
[
"SELECT",
"name",
"FROM",
"races",
"WHERE",
"TIME",
">",
"``",
"12:00:00",
"''",
"OR",
"TIME",
"<",
"``",
"09:00:00",
"''"
] |
[
"select",
"name",
"from",
"races",
"where",
"time",
">",
"value",
"or",
"time",
"<",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"all",
"races",
"that",
"occurred",
"after",
"12:00:00",
"or",
"before",
"09:00:00",
"?"
] |
formula_1
|
SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5
|
What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?
|
[
"SELECT",
"T1.forename",
",",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"pitstops",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"8",
"UNION",
"SELECT",
"T1.forename",
",",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"5"
] |
[
"select",
"t1",
".",
"forename",
",",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"pitstops",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"value",
"union",
"select",
"t1",
".",
"forename",
",",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"value"
] |
[
"What",
"are",
"the",
"drivers",
"'",
"first",
",",
"last",
"names",
"and",
"id",
"who",
"had",
"more",
"than",
"8",
"pit",
"stops",
"or",
"participated",
"in",
"more",
"than",
"5",
"race",
"results",
"?"
] |
formula_1
|
SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5
|
What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?
|
[
"SELECT",
"T1.forename",
",",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"pitstops",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"8",
"UNION",
"SELECT",
"T1.forename",
",",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"5"
] |
[
"select",
"t1",
".",
"forename",
",",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"pitstops",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"value",
"union",
"select",
"t1",
".",
"forename",
",",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"value"
] |
[
"What",
"are",
"the",
"drivers",
"'",
"first",
"names",
",",
"last",
"names",
",",
"and",
"ids",
"for",
"all",
"those",
"that",
"had",
"more",
"than",
"8",
"stops",
"or",
"participated",
"in",
"more",
"than",
"5",
"races",
"?"
] |
formula_1
|
SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5
|
What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?
|
[
"SELECT",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"pitstops",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
"=",
"11",
"INTERSECT",
"SELECT",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"5"
] |
[
"select",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"pitstops",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
"=",
"value",
"intersect",
"select",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"value"
] |
[
"What",
"are",
"the",
"drivers",
"'",
"last",
"names",
"and",
"id",
"who",
"had",
"11",
"pit",
"stops",
"and",
"participated",
"in",
"more",
"than",
"5",
"race",
"results",
"?"
] |
formula_1
|
SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5
|
What are the last names and ids of all drivers who had 11 pit stops and participated in more than 5 races?
|
[
"SELECT",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"pitstops",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
"=",
"11",
"INTERSECT",
"SELECT",
"T1.surname",
",",
"T1.driverid",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"5"
] |
[
"select",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"pitstops",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
"=",
"value",
"intersect",
"select",
"t1",
".",
"surname",
",",
"t1",
".",
"driverid",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"value"
] |
[
"What",
"are",
"the",
"last",
"names",
"and",
"ids",
"of",
"all",
"drivers",
"who",
"had",
"11",
"pit",
"stops",
"and",
"participated",
"in",
"more",
"than",
"5",
"races",
"?"
] |
formula_1
|
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1
|
What is the id and last name of the driver who participated in the most races after 2010?
|
[
"SELECT",
"T1.driverid",
",",
"T1.surname",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"WHERE",
"T3.year",
">",
"2010",
"GROUP",
"BY",
"T1.driverid",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"t1",
".",
"driverid",
",",
"t1",
".",
"surname",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"where",
"t3",
".",
"year",
">",
"value",
"group",
"by",
"t1",
".",
"driverid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"id",
"and",
"last",
"name",
"of",
"the",
"driver",
"who",
"participated",
"in",
"the",
"most",
"races",
"after",
"2010",
"?"
] |
formula_1
|
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1
|
What is the id and last name of the driver who participated in the most races after 2010?
|
[
"SELECT",
"T1.driverid",
",",
"T1.surname",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"WHERE",
"T3.year",
">",
"2010",
"GROUP",
"BY",
"T1.driverid",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"t1",
".",
"driverid",
",",
"t1",
".",
"surname",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"where",
"t3",
".",
"year",
">",
"value",
"group",
"by",
"t1",
".",
"driverid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"id",
"and",
"last",
"name",
"of",
"the",
"driver",
"who",
"participated",
"in",
"the",
"most",
"races",
"after",
"2010",
"?"
] |
formula_1
|
SELECT name FROM circuits WHERE country = "UK" OR country = "Malaysia"
|
What are the names of circuits that belong to UK or Malaysia?
|
[
"SELECT",
"name",
"FROM",
"circuits",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"OR",
"country",
"=",
"``",
"Malaysia",
"''"
] |
[
"select",
"name",
"from",
"circuits",
"where",
"country",
"=",
"value",
"or",
"country",
"=",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"circuits",
"that",
"belong",
"to",
"UK",
"or",
"Malaysia",
"?"
] |
formula_1
|
SELECT name FROM circuits WHERE country = "UK" OR country = "Malaysia"
|
What are the names of all the circuits that are in the UK or Malaysia?
|
[
"SELECT",
"name",
"FROM",
"circuits",
"WHERE",
"country",
"=",
"``",
"UK",
"''",
"OR",
"country",
"=",
"``",
"Malaysia",
"''"
] |
[
"select",
"name",
"from",
"circuits",
"where",
"country",
"=",
"value",
"or",
"country",
"=",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"circuits",
"that",
"are",
"in",
"the",
"UK",
"or",
"Malaysia",
"?"
] |
formula_1
|
SELECT circuitid , LOCATION FROM circuits WHERE country = "France" OR country = "Belgium"
|
Find the id and location of circuits that belong to France or Belgium?
|
[
"SELECT",
"circuitid",
",",
"LOCATION",
"FROM",
"circuits",
"WHERE",
"country",
"=",
"``",
"France",
"''",
"OR",
"country",
"=",
"``",
"Belgium",
"''"
] |
[
"select",
"circuitid",
",",
"location",
"from",
"circuits",
"where",
"country",
"=",
"value",
"or",
"country",
"=",
"value"
] |
[
"Find",
"the",
"id",
"and",
"location",
"of",
"circuits",
"that",
"belong",
"to",
"France",
"or",
"Belgium",
"?"
] |
formula_1
|
SELECT circuitid , LOCATION FROM circuits WHERE country = "France" OR country = "Belgium"
|
What are the ids and locations of all circuits in France or Belgium?
|
[
"SELECT",
"circuitid",
",",
"LOCATION",
"FROM",
"circuits",
"WHERE",
"country",
"=",
"``",
"France",
"''",
"OR",
"country",
"=",
"``",
"Belgium",
"''"
] |
[
"select",
"circuitid",
",",
"location",
"from",
"circuits",
"where",
"country",
"=",
"value",
"or",
"country",
"=",
"value"
] |
[
"What",
"are",
"the",
"ids",
"and",
"locations",
"of",
"all",
"circuits",
"in",
"France",
"or",
"Belgium",
"?"
] |
formula_1
|
SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = "Japanese" AND T2.points > 5
|
Find the names of Japanese constructors that have once earned more than 5 points?
|
[
"SELECT",
"T1.name",
"FROM",
"constructors",
"AS",
"T1",
"JOIN",
"constructorstandings",
"AS",
"T2",
"ON",
"T1.constructorid",
"=",
"T2.constructorid",
"WHERE",
"T1.nationality",
"=",
"``",
"Japanese",
"''",
"AND",
"T2.points",
">",
"5"
] |
[
"select",
"t1",
".",
"name",
"from",
"constructors",
"as",
"t1",
"join",
"constructorstandings",
"as",
"t2",
"on",
"t1",
".",
"constructorid",
"=",
"t2",
".",
"constructorid",
"where",
"t1",
".",
"nationality",
"=",
"value",
"and",
"t2",
".",
"points",
">",
"value"
] |
[
"Find",
"the",
"names",
"of",
"Japanese",
"constructors",
"that",
"have",
"once",
"earned",
"more",
"than",
"5",
"points",
"?"
] |
formula_1
|
SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = "Japanese" AND T2.points > 5
|
What are the names of all the Japanese constructors that have earned more than 5 points?
|
[
"SELECT",
"T1.name",
"FROM",
"constructors",
"AS",
"T1",
"JOIN",
"constructorstandings",
"AS",
"T2",
"ON",
"T1.constructorid",
"=",
"T2.constructorid",
"WHERE",
"T1.nationality",
"=",
"``",
"Japanese",
"''",
"AND",
"T2.points",
">",
"5"
] |
[
"select",
"t1",
".",
"name",
"from",
"constructors",
"as",
"t1",
"join",
"constructorstandings",
"as",
"t2",
"on",
"t1",
".",
"constructorid",
"=",
"t2",
".",
"constructorid",
"where",
"t1",
".",
"nationality",
"=",
"value",
"and",
"t2",
".",
"points",
">",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"Japanese",
"constructors",
"that",
"have",
"earned",
"more",
"than",
"5",
"points",
"?"
] |
formula_1
|
SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
|
What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?
|
[
"SELECT",
"avg",
"(",
"T2.fastestlapspeed",
")",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
"=",
"2008",
"AND",
"T1.name",
"=",
"``",
"Monaco",
"Grand",
"Prix",
"''"
] |
[
"select",
"avg",
"(",
"t2",
".",
"fastestlapspeed",
")",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
"=",
"value",
"and",
"t1",
".",
"name",
"=",
"value"
] |
[
"What",
"is",
"the",
"average",
"fastest",
"lap",
"speed",
"in",
"race",
"named",
"'Monaco",
"Grand",
"Prix",
"'",
"in",
"2008",
"?"
] |
formula_1
|
SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
|
What is the average fastest lap speed for the Monaco Grand Prix in 2008?
|
[
"SELECT",
"avg",
"(",
"T2.fastestlapspeed",
")",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
"=",
"2008",
"AND",
"T1.name",
"=",
"``",
"Monaco",
"Grand",
"Prix",
"''"
] |
[
"select",
"avg",
"(",
"t2",
".",
"fastestlapspeed",
")",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
"=",
"value",
"and",
"t1",
".",
"name",
"=",
"value"
] |
[
"What",
"is",
"the",
"average",
"fastest",
"lap",
"speed",
"for",
"the",
"Monaco",
"Grand",
"Prix",
"in",
"2008",
"?"
] |
formula_1
|
SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
|
What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?
|
[
"SELECT",
"max",
"(",
"T2.fastestlapspeed",
")",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
"=",
"2008",
"AND",
"T1.name",
"=",
"``",
"Monaco",
"Grand",
"Prix",
"''"
] |
[
"select",
"max",
"(",
"t2",
".",
"fastestlapspeed",
")",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
"=",
"value",
"and",
"t1",
".",
"name",
"=",
"value"
] |
[
"What",
"is",
"the",
"maximum",
"fastest",
"lap",
"speed",
"in",
"race",
"named",
"'Monaco",
"Grand",
"Prix",
"'",
"in",
"2008",
"?"
] |
formula_1
|
SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
|
What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?
|
[
"SELECT",
"max",
"(",
"T2.fastestlapspeed",
")",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
"=",
"2008",
"AND",
"T1.name",
"=",
"``",
"Monaco",
"Grand",
"Prix",
"''"
] |
[
"select",
"max",
"(",
"t2",
".",
"fastestlapspeed",
")",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
"=",
"value",
"and",
"t1",
".",
"name",
"=",
"value"
] |
[
"What",
"is",
"the",
"maximum",
"fastest",
"lap",
"speed",
"in",
"the",
"Monaco",
"Grand",
"Prix",
"in",
"2008",
"?"
] |
formula_1
|
SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
|
What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?
|
[
"SELECT",
"max",
"(",
"T2.fastestlapspeed",
")",
",",
"T1.name",
",",
"T1.year",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
">",
"2014",
"GROUP",
"BY",
"T1.name",
"ORDER",
"BY",
"T1.year"
] |
[
"select",
"max",
"(",
"t2",
".",
"fastestlapspeed",
")",
",",
"t1",
".",
"name",
",",
"t1",
".",
"year",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
">",
"value",
"group",
"by",
"t1",
".",
"name",
"order",
"by",
"t1",
".",
"year"
] |
[
"What",
"are",
"the",
"maximum",
"fastest",
"lap",
"speed",
"in",
"races",
"held",
"after",
"2004",
"grouped",
"by",
"race",
"name",
"and",
"ordered",
"by",
"year",
"?"
] |
formula_1
|
SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
|
For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?
|
[
"SELECT",
"max",
"(",
"T2.fastestlapspeed",
")",
",",
"T1.name",
",",
"T1.year",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
">",
"2014",
"GROUP",
"BY",
"T1.name",
"ORDER",
"BY",
"T1.year"
] |
[
"select",
"max",
"(",
"t2",
".",
"fastestlapspeed",
")",
",",
"t1",
".",
"name",
",",
"t1",
".",
"year",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
">",
"value",
"group",
"by",
"t1",
".",
"name",
"order",
"by",
"t1",
".",
"year"
] |
[
"For",
"each",
"race",
"name",
",",
"What",
"is",
"the",
"maximum",
"fastest",
"lap",
"speed",
"for",
"races",
"after",
"2004",
"ordered",
"by",
"year",
"?"
] |
formula_1
|
SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
|
What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?
|
[
"SELECT",
"avg",
"(",
"T2.fastestlapspeed",
")",
",",
"T1.name",
",",
"T1.year",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
">",
"2014",
"GROUP",
"BY",
"T1.name",
"ORDER",
"BY",
"T1.year"
] |
[
"select",
"avg",
"(",
"t2",
".",
"fastestlapspeed",
")",
",",
"t1",
".",
"name",
",",
"t1",
".",
"year",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
">",
"value",
"group",
"by",
"t1",
".",
"name",
"order",
"by",
"t1",
".",
"year"
] |
[
"What",
"are",
"the",
"average",
"fastest",
"lap",
"speed",
"in",
"races",
"held",
"after",
"2004",
"grouped",
"by",
"race",
"name",
"and",
"ordered",
"by",
"year",
"?"
] |
formula_1
|
SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
|
What is the average fastest lap speed for races held after 2004, for each race, ordered by year?
|
[
"SELECT",
"avg",
"(",
"T2.fastestlapspeed",
")",
",",
"T1.name",
",",
"T1.year",
"FROM",
"races",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.raceid",
"=",
"T2.raceid",
"WHERE",
"T1.year",
">",
"2014",
"GROUP",
"BY",
"T1.name",
"ORDER",
"BY",
"T1.year"
] |
[
"select",
"avg",
"(",
"t2",
".",
"fastestlapspeed",
")",
",",
"t1",
".",
"name",
",",
"t1",
".",
"year",
"from",
"races",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"raceid",
"=",
"t2",
".",
"raceid",
"where",
"t1",
".",
"year",
">",
"value",
"group",
"by",
"t1",
".",
"name",
"order",
"by",
"t1",
".",
"year"
] |
[
"What",
"is",
"the",
"average",
"fastest",
"lap",
"speed",
"for",
"races",
"held",
"after",
"2004",
",",
"for",
"each",
"race",
",",
"ordered",
"by",
"year",
"?"
] |
formula_1
|
SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2
|
Find the id, forename and number of races of all drivers who have at least participated in two races?
|
[
"SELECT",
"T1.driverid",
",",
"T1.forename",
",",
"count",
"(",
"*",
")",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] |
[
"select",
"t1",
".",
"driverid",
",",
"t1",
".",
"forename",
",",
"count",
"(",
"*",
")",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] |
[
"Find",
"the",
"id",
",",
"forename",
"and",
"number",
"of",
"races",
"of",
"all",
"drivers",
"who",
"have",
"at",
"least",
"participated",
"in",
"two",
"races",
"?"
] |
formula_1
|
SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2
|
What is the id, forename, and number of races for all drivers that have participated in at least 2 races?
|
[
"SELECT",
"T1.driverid",
",",
"T1.forename",
",",
"count",
"(",
"*",
")",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] |
[
"select",
"t1",
".",
"driverid",
",",
"t1",
".",
"forename",
",",
"count",
"(",
"*",
")",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] |
[
"What",
"is",
"the",
"id",
",",
"forename",
",",
"and",
"number",
"of",
"races",
"for",
"all",
"drivers",
"that",
"have",
"participated",
"in",
"at",
"least",
"2",
"races",
"?"
] |
formula_1
|
SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30
|
Find the driver id and number of races of all drivers who have at most participated in 30 races?
|
[
"SELECT",
"T1.driverid",
",",
"count",
"(",
"*",
")",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
"<",
"=",
"30"
] |
[
"select",
"t1",
".",
"driverid",
",",
"count",
"(",
"*",
")",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
"<",
"=",
"value"
] |
[
"Find",
"the",
"driver",
"id",
"and",
"number",
"of",
"races",
"of",
"all",
"drivers",
"who",
"have",
"at",
"most",
"participated",
"in",
"30",
"races",
"?"
] |
formula_1
|
SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30
|
For each id of a driver who participated in at most 30 races, how many races did they participate in?
|
[
"SELECT",
"T1.driverid",
",",
"count",
"(",
"*",
")",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"GROUP",
"BY",
"T1.driverid",
"HAVING",
"count",
"(",
"*",
")",
"<",
"=",
"30"
] |
[
"select",
"t1",
".",
"driverid",
",",
"count",
"(",
"*",
")",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"group",
"by",
"t1",
".",
"driverid",
"having",
"count",
"(",
"*",
")",
"<",
"=",
"value"
] |
[
"For",
"each",
"id",
"of",
"a",
"driver",
"who",
"participated",
"in",
"at",
"most",
"30",
"races",
",",
"how",
"many",
"races",
"did",
"they",
"participate",
"in",
"?"
] |
formula_1
|
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1
|
Find the id and surname of the driver who participated the most number of races?
|
[
"SELECT",
"T1.driverid",
",",
"T1.surname",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"GROUP",
"BY",
"T1.driverid",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"t1",
".",
"driverid",
",",
"t1",
".",
"surname",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"group",
"by",
"t1",
".",
"driverid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"Find",
"the",
"id",
"and",
"surname",
"of",
"the",
"driver",
"who",
"participated",
"the",
"most",
"number",
"of",
"races",
"?"
] |
formula_1
|
SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1
|
What are the ids and last names of all drivers who participated in the most races?
|
[
"SELECT",
"T1.driverid",
",",
"T1.surname",
"FROM",
"drivers",
"AS",
"T1",
"JOIN",
"results",
"AS",
"T2",
"ON",
"T1.driverid",
"=",
"T2.driverid",
"JOIN",
"races",
"AS",
"T3",
"ON",
"T2.raceid",
"=",
"T3.raceid",
"GROUP",
"BY",
"T1.driverid",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"t1",
".",
"driverid",
",",
"t1",
".",
"surname",
"from",
"drivers",
"as",
"t1",
"join",
"results",
"as",
"t2",
"on",
"t1",
".",
"driverid",
"=",
"t2",
".",
"driverid",
"join",
"races",
"as",
"t3",
"on",
"t2",
".",
"raceid",
"=",
"t3",
".",
"raceid",
"group",
"by",
"t1",
".",
"driverid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"What",
"are",
"the",
"ids",
"and",
"last",
"names",
"of",
"all",
"drivers",
"who",
"participated",
"in",
"the",
"most",
"races",
"?"
] |
machine_repair
|
SELECT count(*) FROM technician
|
How many technicians are there?
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"technician"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"technician"
] |
[
"How",
"many",
"technicians",
"are",
"there",
"?"
] |
machine_repair
|
SELECT count(*) FROM technician
|
What is the number of technicians?
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"technician"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"technician"
] |
[
"What",
"is",
"the",
"number",
"of",
"technicians",
"?"
] |
machine_repair
|
SELECT Name FROM technician ORDER BY Age ASC
|
List the names of technicians in ascending order of age.
|
[
"SELECT",
"Name",
"FROM",
"technician",
"ORDER",
"BY",
"Age",
"ASC"
] |
[
"select",
"name",
"from",
"technician",
"order",
"by",
"age",
"asc"
] |
[
"List",
"the",
"names",
"of",
"technicians",
"in",
"ascending",
"order",
"of",
"age",
"."
] |
machine_repair
|
SELECT Name FROM technician ORDER BY Age ASC
|
What are the names of the technicians by ascending order of age?
|
[
"SELECT",
"Name",
"FROM",
"technician",
"ORDER",
"BY",
"Age",
"ASC"
] |
[
"select",
"name",
"from",
"technician",
"order",
"by",
"age",
"asc"
] |
[
"What",
"are",
"the",
"names",
"of",
"the",
"technicians",
"by",
"ascending",
"order",
"of",
"age",
"?"
] |
machine_repair
|
SELECT Team , Starting_Year FROM technician
|
What are the team and starting year of technicians?
|
[
"SELECT",
"Team",
",",
"Starting_Year",
"FROM",
"technician"
] |
[
"select",
"team",
",",
"starting_year",
"from",
"technician"
] |
[
"What",
"are",
"the",
"team",
"and",
"starting",
"year",
"of",
"technicians",
"?"
] |
machine_repair
|
SELECT Team , Starting_Year FROM technician
|
What is the team and starting year for each technician?
|
[
"SELECT",
"Team",
",",
"Starting_Year",
"FROM",
"technician"
] |
[
"select",
"team",
",",
"starting_year",
"from",
"technician"
] |
[
"What",
"is",
"the",
"team",
"and",
"starting",
"year",
"for",
"each",
"technician",
"?"
] |
machine_repair
|
SELECT Name FROM technician WHERE Team != "NYY"
|
List the name of technicians whose team is not "NYY".
|
[
"SELECT",
"Name",
"FROM",
"technician",
"WHERE",
"Team",
"!",
"=",
"``",
"NYY",
"''"
] |
[
"select",
"name",
"from",
"technician",
"where",
"team",
"!",
"=",
"value"
] |
[
"List",
"the",
"name",
"of",
"technicians",
"whose",
"team",
"is",
"not",
"``",
"NYY",
"''",
"."
] |
machine_repair
|
SELECT Name FROM technician WHERE Team != "NYY"
|
What is the name of the technician whose team is not 'NYY'?
|
[
"SELECT",
"Name",
"FROM",
"technician",
"WHERE",
"Team",
"!",
"=",
"``",
"NYY",
"''"
] |
[
"select",
"name",
"from",
"technician",
"where",
"team",
"!",
"=",
"value"
] |
[
"What",
"is",
"the",
"name",
"of",
"the",
"technician",
"whose",
"team",
"is",
"not",
"'NYY",
"'",
"?"
] |
machine_repair
|
SELECT Name FROM technician WHERE Age = 36 OR Age = 37
|
Show the name of technicians aged either 36 or 37
|
[
"SELECT",
"Name",
"FROM",
"technician",
"WHERE",
"Age",
"=",
"36",
"OR",
"Age",
"=",
"37"
] |
[
"select",
"name",
"from",
"technician",
"where",
"age",
"=",
"value",
"or",
"age",
"=",
"value"
] |
[
"Show",
"the",
"name",
"of",
"technicians",
"aged",
"either",
"36",
"or",
"37"
] |
machine_repair
|
SELECT Name FROM technician WHERE Age = 36 OR Age = 37
|
What are the names of the technicians aged either 36 or 37?
|
[
"SELECT",
"Name",
"FROM",
"technician",
"WHERE",
"Age",
"=",
"36",
"OR",
"Age",
"=",
"37"
] |
[
"select",
"name",
"from",
"technician",
"where",
"age",
"=",
"value",
"or",
"age",
"=",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"the",
"technicians",
"aged",
"either",
"36",
"or",
"37",
"?"
] |
machine_repair
|
SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1
|
What is the starting year of the oldest technicians?
|
[
"SELECT",
"Starting_Year",
"FROM",
"technician",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"starting_year",
"from",
"technician",
"order",
"by",
"age",
"desc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"starting",
"year",
"of",
"the",
"oldest",
"technicians",
"?"
] |
machine_repair
|
SELECT Starting_Year FROM technician ORDER BY Age DESC LIMIT 1
|
What is the starting year for the oldest technician?
|
[
"SELECT",
"Starting_Year",
"FROM",
"technician",
"ORDER",
"BY",
"Age",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"starting_year",
"from",
"technician",
"order",
"by",
"age",
"desc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"starting",
"year",
"for",
"the",
"oldest",
"technician",
"?"
] |
machine_repair
|
SELECT Team , COUNT(*) FROM technician GROUP BY Team
|
Show different teams of technicians and the number of technicians in each team.
|
[
"SELECT",
"Team",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"technician",
"GROUP",
"BY",
"Team"
] |
[
"select",
"team",
",",
"count",
"(",
"*",
")",
"from",
"technician",
"group",
"by",
"team"
] |
[
"Show",
"different",
"teams",
"of",
"technicians",
"and",
"the",
"number",
"of",
"technicians",
"in",
"each",
"team",
"."
] |
machine_repair
|
SELECT Team , COUNT(*) FROM technician GROUP BY Team
|
For each team, how many technicians are there?
|
[
"SELECT",
"Team",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"technician",
"GROUP",
"BY",
"Team"
] |
[
"select",
"team",
",",
"count",
"(",
"*",
")",
"from",
"technician",
"group",
"by",
"team"
] |
[
"For",
"each",
"team",
",",
"how",
"many",
"technicians",
"are",
"there",
"?"
] |
machine_repair
|
SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1
|
Please show the team that has the most number of technicians.
|
[
"SELECT",
"Team",
"FROM",
"technician",
"GROUP",
"BY",
"Team",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"team",
"from",
"technician",
"group",
"by",
"team",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"Please",
"show",
"the",
"team",
"that",
"has",
"the",
"most",
"number",
"of",
"technicians",
"."
] |
machine_repair
|
SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1
|
What are the teams with the most technicians?
|
[
"SELECT",
"Team",
"FROM",
"technician",
"GROUP",
"BY",
"Team",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"team",
"from",
"technician",
"group",
"by",
"team",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"What",
"are",
"the",
"teams",
"with",
"the",
"most",
"technicians",
"?"
] |
machine_repair
|
SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
|
Show the team that have at least two technicians.
|
[
"SELECT",
"Team",
"FROM",
"technician",
"GROUP",
"BY",
"Team",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] |
[
"select",
"team",
"from",
"technician",
"group",
"by",
"team",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] |
[
"Show",
"the",
"team",
"that",
"have",
"at",
"least",
"two",
"technicians",
"."
] |
machine_repair
|
SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
|
What is the team with at least 2 technicians?
|
[
"SELECT",
"Team",
"FROM",
"technician",
"GROUP",
"BY",
"Team",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] |
[
"select",
"team",
"from",
"technician",
"group",
"by",
"team",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] |
[
"What",
"is",
"the",
"team",
"with",
"at",
"least",
"2",
"technicians",
"?"
] |
machine_repair
|
SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
|
Show names of technicians and series of machines they are assigned to repair.
|
[
"SELECT",
"T3.Name",
",",
"T2.Machine_series",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"machine",
"AS",
"T2",
"ON",
"T1.machine_id",
"=",
"T2.machine_id",
"JOIN",
"technician",
"AS",
"T3",
"ON",
"T1.technician_ID",
"=",
"T3.technician_ID"
] |
[
"select",
"t3",
".",
"name",
",",
"t2",
".",
"machine_series",
"from",
"repair_assignment",
"as",
"t1",
"join",
"machine",
"as",
"t2",
"on",
"t1",
".",
"machine_id",
"=",
"t2",
".",
"machine_id",
"join",
"technician",
"as",
"t3",
"on",
"t1",
".",
"technician_id",
"=",
"t3",
".",
"technician_id"
] |
[
"Show",
"names",
"of",
"technicians",
"and",
"series",
"of",
"machines",
"they",
"are",
"assigned",
"to",
"repair",
"."
] |
machine_repair
|
SELECT T3.Name , T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
|
What are the names of technicians and the machine series that they repair?
|
[
"SELECT",
"T3.Name",
",",
"T2.Machine_series",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"machine",
"AS",
"T2",
"ON",
"T1.machine_id",
"=",
"T2.machine_id",
"JOIN",
"technician",
"AS",
"T3",
"ON",
"T1.technician_ID",
"=",
"T3.technician_ID"
] |
[
"select",
"t3",
".",
"name",
",",
"t2",
".",
"machine_series",
"from",
"repair_assignment",
"as",
"t1",
"join",
"machine",
"as",
"t2",
"on",
"t1",
".",
"machine_id",
"=",
"t2",
".",
"machine_id",
"join",
"technician",
"as",
"t3",
"on",
"t1",
".",
"technician_id",
"=",
"t3",
".",
"technician_id"
] |
[
"What",
"are",
"the",
"names",
"of",
"technicians",
"and",
"the",
"machine",
"series",
"that",
"they",
"repair",
"?"
] |
machine_repair
|
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank
|
Show names of technicians in ascending order of quality rank of the machine they are assigned.
|
[
"SELECT",
"T3.Name",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"machine",
"AS",
"T2",
"ON",
"T1.machine_id",
"=",
"T2.machine_id",
"JOIN",
"technician",
"AS",
"T3",
"ON",
"T1.technician_ID",
"=",
"T3.technician_ID",
"ORDER",
"BY",
"T2.quality_rank"
] |
[
"select",
"t3",
".",
"name",
"from",
"repair_assignment",
"as",
"t1",
"join",
"machine",
"as",
"t2",
"on",
"t1",
".",
"machine_id",
"=",
"t2",
".",
"machine_id",
"join",
"technician",
"as",
"t3",
"on",
"t1",
".",
"technician_id",
"=",
"t3",
".",
"technician_id",
"order",
"by",
"t2",
".",
"quality_rank"
] |
[
"Show",
"names",
"of",
"technicians",
"in",
"ascending",
"order",
"of",
"quality",
"rank",
"of",
"the",
"machine",
"they",
"are",
"assigned",
"."
] |
machine_repair
|
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank
|
What are the names of the technicians by ascending order of quality rank for the machine they are assigned?
|
[
"SELECT",
"T3.Name",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"machine",
"AS",
"T2",
"ON",
"T1.machine_id",
"=",
"T2.machine_id",
"JOIN",
"technician",
"AS",
"T3",
"ON",
"T1.technician_ID",
"=",
"T3.technician_ID",
"ORDER",
"BY",
"T2.quality_rank"
] |
[
"select",
"t3",
".",
"name",
"from",
"repair_assignment",
"as",
"t1",
"join",
"machine",
"as",
"t2",
"on",
"t1",
".",
"machine_id",
"=",
"t2",
".",
"machine_id",
"join",
"technician",
"as",
"t3",
"on",
"t1",
".",
"technician_id",
"=",
"t3",
".",
"technician_id",
"order",
"by",
"t2",
".",
"quality_rank"
] |
[
"What",
"are",
"the",
"names",
"of",
"the",
"technicians",
"by",
"ascending",
"order",
"of",
"quality",
"rank",
"for",
"the",
"machine",
"they",
"are",
"assigned",
"?"
] |
machine_repair
|
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
|
Show names of technicians who are assigned to repair machines with value point more than 70.
|
[
"SELECT",
"T3.Name",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"machine",
"AS",
"T2",
"ON",
"T1.machine_id",
"=",
"T2.machine_id",
"JOIN",
"technician",
"AS",
"T3",
"ON",
"T1.technician_ID",
"=",
"T3.technician_ID",
"WHERE",
"T2.value_points",
">",
"70"
] |
[
"select",
"t3",
".",
"name",
"from",
"repair_assignment",
"as",
"t1",
"join",
"machine",
"as",
"t2",
"on",
"t1",
".",
"machine_id",
"=",
"t2",
".",
"machine_id",
"join",
"technician",
"as",
"t3",
"on",
"t1",
".",
"technician_id",
"=",
"t3",
".",
"technician_id",
"where",
"t2",
".",
"value_points",
">",
"value"
] |
[
"Show",
"names",
"of",
"technicians",
"who",
"are",
"assigned",
"to",
"repair",
"machines",
"with",
"value",
"point",
"more",
"than",
"70",
"."
] |
machine_repair
|
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
|
What are the names of the technicians that are assigned to repair machines with more point values than 70?
|
[
"SELECT",
"T3.Name",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"machine",
"AS",
"T2",
"ON",
"T1.machine_id",
"=",
"T2.machine_id",
"JOIN",
"technician",
"AS",
"T3",
"ON",
"T1.technician_ID",
"=",
"T3.technician_ID",
"WHERE",
"T2.value_points",
">",
"70"
] |
[
"select",
"t3",
".",
"name",
"from",
"repair_assignment",
"as",
"t1",
"join",
"machine",
"as",
"t2",
"on",
"t1",
".",
"machine_id",
"=",
"t2",
".",
"machine_id",
"join",
"technician",
"as",
"t3",
"on",
"t1",
".",
"technician_id",
"=",
"t3",
".",
"technician_id",
"where",
"t2",
".",
"value_points",
">",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"the",
"technicians",
"that",
"are",
"assigned",
"to",
"repair",
"machines",
"with",
"more",
"point",
"values",
"than",
"70",
"?"
] |
machine_repair
|
SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name
|
Show names of technicians and the number of machines they are assigned to repair.
|
[
"SELECT",
"T2.Name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"technician",
"AS",
"T2",
"ON",
"T1.technician_ID",
"=",
"T2.technician_ID",
"GROUP",
"BY",
"T2.Name"
] |
[
"select",
"t2",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"repair_assignment",
"as",
"t1",
"join",
"technician",
"as",
"t2",
"on",
"t1",
".",
"technician_id",
"=",
"t2",
".",
"technician_id",
"group",
"by",
"t2",
".",
"name"
] |
[
"Show",
"names",
"of",
"technicians",
"and",
"the",
"number",
"of",
"machines",
"they",
"are",
"assigned",
"to",
"repair",
"."
] |
machine_repair
|
SELECT T2.Name , COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name
|
What are the names of the technicians and how many machines are they assigned to repair?
|
[
"SELECT",
"T2.Name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"repair_assignment",
"AS",
"T1",
"JOIN",
"technician",
"AS",
"T2",
"ON",
"T1.technician_ID",
"=",
"T2.technician_ID",
"GROUP",
"BY",
"T2.Name"
] |
[
"select",
"t2",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"repair_assignment",
"as",
"t1",
"join",
"technician",
"as",
"t2",
"on",
"t1",
".",
"technician_id",
"=",
"t2",
".",
"technician_id",
"group",
"by",
"t2",
".",
"name"
] |
[
"What",
"are",
"the",
"names",
"of",
"the",
"technicians",
"and",
"how",
"many",
"machines",
"are",
"they",
"assigned",
"to",
"repair",
"?"
] |
machine_repair
|
SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)
|
List the names of technicians who have not been assigned to repair machines.
|
[
"SELECT",
"Name",
"FROM",
"technician",
"WHERE",
"technician_id",
"NOT",
"IN",
"(",
"SELECT",
"technician_id",
"FROM",
"repair_assignment",
")"
] |
[
"select",
"name",
"from",
"technician",
"where",
"technician_id",
"not",
"in",
"(",
"select",
"technician_id",
"from",
"repair_assignment",
")"
] |
[
"List",
"the",
"names",
"of",
"technicians",
"who",
"have",
"not",
"been",
"assigned",
"to",
"repair",
"machines",
"."
] |
machine_repair
|
SELECT Name FROM technician WHERE technician_id NOT IN (SELECT technician_id FROM repair_assignment)
|
What are the names of the technicians that have not been assigned to repair machines?
|
[
"SELECT",
"Name",
"FROM",
"technician",
"WHERE",
"technician_id",
"NOT",
"IN",
"(",
"SELECT",
"technician_id",
"FROM",
"repair_assignment",
")"
] |
[
"select",
"name",
"from",
"technician",
"where",
"technician_id",
"not",
"in",
"(",
"select",
"technician_id",
"from",
"repair_assignment",
")"
] |
[
"What",
"are",
"the",
"names",
"of",
"the",
"technicians",
"that",
"have",
"not",
"been",
"assigned",
"to",
"repair",
"machines",
"?"
] |
machine_repair
|
SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS"
|
Show the starting years shared by technicians from team "CLE" and "CWS".
|
[
"SELECT",
"Starting_Year",
"FROM",
"technician",
"WHERE",
"Team",
"=",
"``",
"CLE",
"''",
"INTERSECT",
"SELECT",
"Starting_Year",
"FROM",
"technician",
"WHERE",
"Team",
"=",
"``",
"CWS",
"''"
] |
[
"select",
"starting_year",
"from",
"technician",
"where",
"team",
"=",
"value",
"intersect",
"select",
"starting_year",
"from",
"technician",
"where",
"team",
"=",
"value"
] |
[
"Show",
"the",
"starting",
"years",
"shared",
"by",
"technicians",
"from",
"team",
"``",
"CLE",
"''",
"and",
"``",
"CWS",
"''",
"."
] |
machine_repair
|
SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS"
|
What are the starting years shared by the technicians from the team "CLE" or "CWS"?
|
[
"SELECT",
"Starting_Year",
"FROM",
"technician",
"WHERE",
"Team",
"=",
"``",
"CLE",
"''",
"INTERSECT",
"SELECT",
"Starting_Year",
"FROM",
"technician",
"WHERE",
"Team",
"=",
"``",
"CWS",
"''"
] |
[
"select",
"starting_year",
"from",
"technician",
"where",
"team",
"=",
"value",
"intersect",
"select",
"starting_year",
"from",
"technician",
"where",
"team",
"=",
"value"
] |
[
"What",
"are",
"the",
"starting",
"years",
"shared",
"by",
"the",
"technicians",
"from",
"the",
"team",
"``",
"CLE",
"''",
"or",
"``",
"CWS",
"''",
"?"
] |
entrepreneur
|
SELECT count(*) FROM entrepreneur
|
How many entrepreneurs are there?
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"entrepreneur"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"entrepreneur"
] |
[
"How",
"many",
"entrepreneurs",
"are",
"there",
"?"
] |
entrepreneur
|
SELECT count(*) FROM entrepreneur
|
Count the number of entrepreneurs.
|
[
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"entrepreneur"
] |
[
"select",
"count",
"(",
"*",
")",
"from",
"entrepreneur"
] |
[
"Count",
"the",
"number",
"of",
"entrepreneurs",
"."
] |
entrepreneur
|
SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC
|
List the companies of entrepreneurs in descending order of money requested.
|
[
"SELECT",
"Company",
"FROM",
"entrepreneur",
"ORDER",
"BY",
"Money_Requested",
"DESC"
] |
[
"select",
"company",
"from",
"entrepreneur",
"order",
"by",
"money_requested",
"desc"
] |
[
"List",
"the",
"companies",
"of",
"entrepreneurs",
"in",
"descending",
"order",
"of",
"money",
"requested",
"."
] |
entrepreneur
|
SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC
|
What are the companies of entrepreneurs, ordered descending by amount of money requested?
|
[
"SELECT",
"Company",
"FROM",
"entrepreneur",
"ORDER",
"BY",
"Money_Requested",
"DESC"
] |
[
"select",
"company",
"from",
"entrepreneur",
"order",
"by",
"money_requested",
"desc"
] |
[
"What",
"are",
"the",
"companies",
"of",
"entrepreneurs",
",",
"ordered",
"descending",
"by",
"amount",
"of",
"money",
"requested",
"?"
] |
entrepreneur
|
SELECT Company , Investor FROM entrepreneur
|
List the companies and the investors of entrepreneurs.
|
[
"SELECT",
"Company",
",",
"Investor",
"FROM",
"entrepreneur"
] |
[
"select",
"company",
",",
"investor",
"from",
"entrepreneur"
] |
[
"List",
"the",
"companies",
"and",
"the",
"investors",
"of",
"entrepreneurs",
"."
] |
entrepreneur
|
SELECT Company , Investor FROM entrepreneur
|
What are the companies and investors that correspond to each entrepreneur?
|
[
"SELECT",
"Company",
",",
"Investor",
"FROM",
"entrepreneur"
] |
[
"select",
"company",
",",
"investor",
"from",
"entrepreneur"
] |
[
"What",
"are",
"the",
"companies",
"and",
"investors",
"that",
"correspond",
"to",
"each",
"entrepreneur",
"?"
] |
entrepreneur
|
SELECT avg(Money_Requested) FROM entrepreneur
|
What is the average money requested by all entrepreneurs?
|
[
"SELECT",
"avg",
"(",
"Money_Requested",
")",
"FROM",
"entrepreneur"
] |
[
"select",
"avg",
"(",
"money_requested",
")",
"from",
"entrepreneur"
] |
[
"What",
"is",
"the",
"average",
"money",
"requested",
"by",
"all",
"entrepreneurs",
"?"
] |
entrepreneur
|
SELECT avg(Money_Requested) FROM entrepreneur
|
Return the average money requested across all entrepreneurs.
|
[
"SELECT",
"avg",
"(",
"Money_Requested",
")",
"FROM",
"entrepreneur"
] |
[
"select",
"avg",
"(",
"money_requested",
")",
"from",
"entrepreneur"
] |
[
"Return",
"the",
"average",
"money",
"requested",
"across",
"all",
"entrepreneurs",
"."
] |
entrepreneur
|
SELECT Name FROM People ORDER BY Weight ASC
|
What are the names of people in ascending order of weight?
|
[
"SELECT",
"Name",
"FROM",
"People",
"ORDER",
"BY",
"Weight",
"ASC"
] |
[
"select",
"name",
"from",
"people",
"order",
"by",
"weight",
"asc"
] |
[
"What",
"are",
"the",
"names",
"of",
"people",
"in",
"ascending",
"order",
"of",
"weight",
"?"
] |
entrepreneur
|
SELECT Name FROM People ORDER BY Weight ASC
|
Return the names of people, ordered by weight ascending.
|
[
"SELECT",
"Name",
"FROM",
"People",
"ORDER",
"BY",
"Weight",
"ASC"
] |
[
"select",
"name",
"from",
"people",
"order",
"by",
"weight",
"asc"
] |
[
"Return",
"the",
"names",
"of",
"people",
",",
"ordered",
"by",
"weight",
"ascending",
"."
] |
entrepreneur
|
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
|
What are the names of entrepreneurs?
|
[
"SELECT",
"T2.Name",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID"
] |
[
"select",
"t2",
".",
"name",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id"
] |
[
"What",
"are",
"the",
"names",
"of",
"entrepreneurs",
"?"
] |
entrepreneur
|
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
|
Return the names of entrepreneurs.
|
[
"SELECT",
"T2.Name",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID"
] |
[
"select",
"t2",
".",
"name",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id"
] |
[
"Return",
"the",
"names",
"of",
"entrepreneurs",
"."
] |
entrepreneur
|
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != "Rachel Elnaugh"
|
What are the names of entrepreneurs whose investor is not "Rachel Elnaugh"?
|
[
"SELECT",
"T2.Name",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"WHERE",
"T1.Investor",
"!",
"=",
"``",
"Rachel",
"Elnaugh",
"''"
] |
[
"select",
"t2",
".",
"name",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t1",
".",
"investor",
"!",
"=",
"value"
] |
[
"What",
"are",
"the",
"names",
"of",
"entrepreneurs",
"whose",
"investor",
"is",
"not",
"``",
"Rachel",
"Elnaugh",
"''",
"?"
] |
entrepreneur
|
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor != "Rachel Elnaugh"
|
Return the names of entrepreneurs do no not have the investor Rachel Elnaugh.
|
[
"SELECT",
"T2.Name",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"WHERE",
"T1.Investor",
"!",
"=",
"``",
"Rachel",
"Elnaugh",
"''"
] |
[
"select",
"t2",
".",
"name",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t1",
".",
"investor",
"!",
"=",
"value"
] |
[
"Return",
"the",
"names",
"of",
"entrepreneurs",
"do",
"no",
"not",
"have",
"the",
"investor",
"Rachel",
"Elnaugh",
"."
] |
entrepreneur
|
SELECT Weight FROM people ORDER BY Height ASC LIMIT 1
|
What is the weight of the shortest person?
|
[
"SELECT",
"Weight",
"FROM",
"people",
"ORDER",
"BY",
"Height",
"ASC",
"LIMIT",
"1"
] |
[
"select",
"weight",
"from",
"people",
"order",
"by",
"height",
"asc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"weight",
"of",
"the",
"shortest",
"person",
"?"
] |
entrepreneur
|
SELECT Weight FROM people ORDER BY Height ASC LIMIT 1
|
Return the weight of the shortest person.
|
[
"SELECT",
"Weight",
"FROM",
"people",
"ORDER",
"BY",
"Height",
"ASC",
"LIMIT",
"1"
] |
[
"select",
"weight",
"from",
"people",
"order",
"by",
"height",
"asc",
"limit",
"value"
] |
[
"Return",
"the",
"weight",
"of",
"the",
"shortest",
"person",
"."
] |
entrepreneur
|
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
|
What is the name of the entrepreneur with the greatest weight?
|
[
"SELECT",
"T2.Name",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"ORDER",
"BY",
"T2.Weight",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"t2",
".",
"name",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t2",
".",
"weight",
"desc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"name",
"of",
"the",
"entrepreneur",
"with",
"the",
"greatest",
"weight",
"?"
] |
entrepreneur
|
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
|
Return the name of the heaviest entrepreneur.
|
[
"SELECT",
"T2.Name",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"ORDER",
"BY",
"T2.Weight",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"t2",
".",
"name",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t2",
".",
"weight",
"desc",
"limit",
"value"
] |
[
"Return",
"the",
"name",
"of",
"the",
"heaviest",
"entrepreneur",
"."
] |
entrepreneur
|
SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
|
What is the total money requested by entrepreneurs with height more than 1.85?
|
[
"SELECT",
"sum",
"(",
"T1.Money_Requested",
")",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"WHERE",
"T2.Height",
">",
"1.85"
] |
[
"select",
"sum",
"(",
"t1",
".",
"money_requested",
")",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t2",
".",
"height",
">",
"value"
] |
[
"What",
"is",
"the",
"total",
"money",
"requested",
"by",
"entrepreneurs",
"with",
"height",
"more",
"than",
"1.85",
"?"
] |
entrepreneur
|
SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
|
Give the total money requested by entrepreneurs who are taller than 1.85.
|
[
"SELECT",
"sum",
"(",
"T1.Money_Requested",
")",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"WHERE",
"T2.Height",
">",
"1.85"
] |
[
"select",
"sum",
"(",
"t1",
".",
"money_requested",
")",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t2",
".",
"height",
">",
"value"
] |
[
"Give",
"the",
"total",
"money",
"requested",
"by",
"entrepreneurs",
"who",
"are",
"taller",
"than",
"1.85",
"."
] |
entrepreneur
|
SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones"
|
What are the dates of birth of entrepreneurs with investor "Simon Woodroffe" or "Peter Jones"?
|
[
"SELECT",
"T2.Date_of_Birth",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"WHERE",
"T1.Investor",
"=",
"``",
"Simon",
"Woodroffe",
"''",
"OR",
"T1.Investor",
"=",
"``",
"Peter",
"Jones",
"''"
] |
[
"select",
"t2",
".",
"date_of_birth",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t1",
".",
"investor",
"=",
"value",
"or",
"t1",
".",
"investor",
"=",
"value"
] |
[
"What",
"are",
"the",
"dates",
"of",
"birth",
"of",
"entrepreneurs",
"with",
"investor",
"``",
"Simon",
"Woodroffe",
"''",
"or",
"``",
"Peter",
"Jones",
"''",
"?"
] |
entrepreneur
|
SELECT T2.Date_of_Birth FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones"
|
Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones.
|
[
"SELECT",
"T2.Date_of_Birth",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"WHERE",
"T1.Investor",
"=",
"``",
"Simon",
"Woodroffe",
"''",
"OR",
"T1.Investor",
"=",
"``",
"Peter",
"Jones",
"''"
] |
[
"select",
"t2",
".",
"date_of_birth",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"where",
"t1",
".",
"investor",
"=",
"value",
"or",
"t1",
".",
"investor",
"=",
"value"
] |
[
"Return",
"the",
"dates",
"of",
"birth",
"for",
"entrepreneurs",
"who",
"have",
"either",
"the",
"investor",
"Simon",
"Woodroffe",
"or",
"Peter",
"Jones",
"."
] |
entrepreneur
|
SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC
|
What are the weights of entrepreneurs in descending order of money requested?
|
[
"SELECT",
"T2.Weight",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"ORDER",
"BY",
"T1.Money_Requested",
"DESC"
] |
[
"select",
"t2",
".",
"weight",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t1",
".",
"money_requested",
"desc"
] |
[
"What",
"are",
"the",
"weights",
"of",
"entrepreneurs",
"in",
"descending",
"order",
"of",
"money",
"requested",
"?"
] |
entrepreneur
|
SELECT T2.Weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested DESC
|
Return the weights of entrepreneurs, ordered descending by amount of money requested.
|
[
"SELECT",
"T2.Weight",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"ORDER",
"BY",
"T1.Money_Requested",
"DESC"
] |
[
"select",
"t2",
".",
"weight",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t1",
".",
"money_requested",
"desc"
] |
[
"Return",
"the",
"weights",
"of",
"entrepreneurs",
",",
"ordered",
"descending",
"by",
"amount",
"of",
"money",
"requested",
"."
] |
entrepreneur
|
SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor
|
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?
|
[
"SELECT",
"Investor",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"entrepreneur",
"GROUP",
"BY",
"Investor"
] |
[
"select",
"investor",
",",
"count",
"(",
"*",
")",
"from",
"entrepreneur",
"group",
"by",
"investor"
] |
[
"What",
"are",
"the",
"investors",
"of",
"entrepreneurs",
"and",
"the",
"corresponding",
"number",
"of",
"entrepreneurs",
"invested",
"by",
"each",
"investor",
"?"
] |
entrepreneur
|
SELECT Investor , COUNT(*) FROM entrepreneur GROUP BY Investor
|
How many entrepreneurs correspond to each investor?
|
[
"SELECT",
"Investor",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"entrepreneur",
"GROUP",
"BY",
"Investor"
] |
[
"select",
"investor",
",",
"count",
"(",
"*",
")",
"from",
"entrepreneur",
"group",
"by",
"investor"
] |
[
"How",
"many",
"entrepreneurs",
"correspond",
"to",
"each",
"investor",
"?"
] |
entrepreneur
|
SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1
|
What is the investor that has invested in the most number of entrepreneurs?
|
[
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"GROUP",
"BY",
"Investor",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"investor",
"from",
"entrepreneur",
"group",
"by",
"investor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"What",
"is",
"the",
"investor",
"that",
"has",
"invested",
"in",
"the",
"most",
"number",
"of",
"entrepreneurs",
"?"
] |
entrepreneur
|
SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1
|
Return the investor who have invested in the greatest number of entrepreneurs.
|
[
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"GROUP",
"BY",
"Investor",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] |
[
"select",
"investor",
"from",
"entrepreneur",
"group",
"by",
"investor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] |
[
"Return",
"the",
"investor",
"who",
"have",
"invested",
"in",
"the",
"greatest",
"number",
"of",
"entrepreneurs",
"."
] |
entrepreneur
|
SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2
|
What are the investors that have invested in at least two entrepreneurs?
|
[
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"GROUP",
"BY",
"Investor",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] |
[
"select",
"investor",
"from",
"entrepreneur",
"group",
"by",
"investor",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] |
[
"What",
"are",
"the",
"investors",
"that",
"have",
"invested",
"in",
"at",
"least",
"two",
"entrepreneurs",
"?"
] |
entrepreneur
|
SELECT Investor FROM entrepreneur GROUP BY Investor HAVING COUNT(*) >= 2
|
Return the investors who have invested in two or more entrepreneurs.
|
[
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"GROUP",
"BY",
"Investor",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
] |
[
"select",
"investor",
"from",
"entrepreneur",
"group",
"by",
"investor",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
] |
[
"Return",
"the",
"investors",
"who",
"have",
"invested",
"in",
"two",
"or",
"more",
"entrepreneurs",
"."
] |
entrepreneur
|
SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
|
List the names of entrepreneurs and their companies in descending order of money requested?
|
[
"SELECT",
"T2.Name",
",",
"T1.Company",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"ORDER",
"BY",
"T1.Money_Requested"
] |
[
"select",
"t2",
".",
"name",
",",
"t1",
".",
"company",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t1",
".",
"money_requested"
] |
[
"List",
"the",
"names",
"of",
"entrepreneurs",
"and",
"their",
"companies",
"in",
"descending",
"order",
"of",
"money",
"requested",
"?"
] |
entrepreneur
|
SELECT T2.Name , T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
|
What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested?
|
[
"SELECT",
"T2.Name",
",",
"T1.Company",
"FROM",
"entrepreneur",
"AS",
"T1",
"JOIN",
"people",
"AS",
"T2",
"ON",
"T1.People_ID",
"=",
"T2.People_ID",
"ORDER",
"BY",
"T1.Money_Requested"
] |
[
"select",
"t2",
".",
"name",
",",
"t1",
".",
"company",
"from",
"entrepreneur",
"as",
"t1",
"join",
"people",
"as",
"t2",
"on",
"t1",
".",
"people_id",
"=",
"t2",
".",
"people_id",
"order",
"by",
"t1",
".",
"money_requested"
] |
[
"What",
"are",
"the",
"names",
"of",
"entrepreneurs",
"and",
"their",
"corresponding",
"investors",
",",
"ordered",
"descending",
"by",
"the",
"amount",
"of",
"money",
"requested",
"?"
] |
entrepreneur
|
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)
|
List the names of people that are not entrepreneurs.
|
[
"SELECT",
"Name",
"FROM",
"people",
"WHERE",
"People_ID",
"NOT",
"IN",
"(",
"SELECT",
"People_ID",
"FROM",
"entrepreneur",
")"
] |
[
"select",
"name",
"from",
"people",
"where",
"people_id",
"not",
"in",
"(",
"select",
"people_id",
"from",
"entrepreneur",
")"
] |
[
"List",
"the",
"names",
"of",
"people",
"that",
"are",
"not",
"entrepreneurs",
"."
] |
entrepreneur
|
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM entrepreneur)
|
What are the names of people who are not entrepreneurs?
|
[
"SELECT",
"Name",
"FROM",
"people",
"WHERE",
"People_ID",
"NOT",
"IN",
"(",
"SELECT",
"People_ID",
"FROM",
"entrepreneur",
")"
] |
[
"select",
"name",
"from",
"people",
"where",
"people_id",
"not",
"in",
"(",
"select",
"people_id",
"from",
"entrepreneur",
")"
] |
[
"What",
"are",
"the",
"names",
"of",
"people",
"who",
"are",
"not",
"entrepreneurs",
"?"
] |
entrepreneur
|
SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000
|
Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000.
|
[
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"WHERE",
"Money_Requested",
">",
"140000",
"INTERSECT",
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"WHERE",
"Money_Requested",
"<",
"120000"
] |
[
"select",
"investor",
"from",
"entrepreneur",
"where",
"money_requested",
">",
"value",
"intersect",
"select",
"investor",
"from",
"entrepreneur",
"where",
"money_requested",
"<",
"value"
] |
[
"Show",
"the",
"investors",
"shared",
"by",
"entrepreneurs",
"that",
"requested",
"more",
"than",
"140000",
"and",
"entrepreneurs",
"that",
"requested",
"less",
"than",
"120000",
"."
] |
entrepreneur
|
SELECT Investor FROM entrepreneur WHERE Money_Requested > 140000 INTERSECT SELECT Investor FROM entrepreneur WHERE Money_Requested < 120000
|
What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000?
|
[
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"WHERE",
"Money_Requested",
">",
"140000",
"INTERSECT",
"SELECT",
"Investor",
"FROM",
"entrepreneur",
"WHERE",
"Money_Requested",
"<",
"120000"
] |
[
"select",
"investor",
"from",
"entrepreneur",
"where",
"money_requested",
">",
"value",
"intersect",
"select",
"investor",
"from",
"entrepreneur",
"where",
"money_requested",
"<",
"value"
] |
[
"What",
"are",
"the",
"investors",
"who",
"have",
"invested",
"in",
"both",
"entrepreneurs",
"who",
"requested",
"more",
"than",
"140000",
"and",
"entrepreneurs",
"who",
"requested",
"less",
"than",
"120000",
"?"
] |
entrepreneur
|
SELECT count(DISTINCT Company) FROM entrepreneur
|
How many distinct companies are there?
|
[
"SELECT",
"count",
"(",
"DISTINCT",
"Company",
")",
"FROM",
"entrepreneur"
] |
[
"select",
"count",
"(",
"distinct",
"company",
")",
"from",
"entrepreneur"
] |
[
"How",
"many",
"distinct",
"companies",
"are",
"there",
"?"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.