images
images listlengths 1
7
| problem
stringlengths 36
238
| answer
dict |
---|---|---|
<image><image>Show the official names of the cities that have hosted more than one competition. | {
"data": [
[
"Aroostook"
]
]
} |
|
<image><image>Give the years and official names of the cities of each competition. | {
"data": [
[
"2013",
"Grand Falls/Grand-Sault"
],
[
"2006",
"Perth-Andover"
],
[
"2005",
"Plaster Rock"
],
[
"2004",
"Drummond"
],
[
"2003",
"Aroostook"
],
[
"2002",
"Aroostook"
]
]
} |
|
<image><image>What are the distinct ages of the heads who are acting? | {
"data": [
[
"53.0"
],
[
"52.0"
],
[
"69.0"
]
]
} |
|
<image><image><image>What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'? | {
"data": [
[
"1903"
]
]
} |
|
<image><image>Show the years and the official names of the host cities of competitions. | {
"data": [
[
"2013",
"Grand Falls/Grand-Sault"
],
[
"2006",
"Perth-Andover"
],
[
"2005",
"Plaster Rock"
],
[
"2004",
"Drummond"
],
[
"2003",
"Aroostook"
],
[
"2002",
"Aroostook"
]
]
} |
|
<image><image><image>List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born. | {
"data": [
[
"California"
]
]
} |
|
<image><image>What are the official names of cities that have hosted more than one competition? | {
"data": [
[
"Aroostook"
]
]
} |
|
<image><image>Show the status of the city that has hosted the greatest number of competitions. | {
"data": [
[
"Village"
]
]
} |
|
<image><image>Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'? | {
"data": [
[
"Treasury",
"115897.0"
],
[
"Homeland Security",
"208000.0"
],
[
"Treasury",
"115897.0"
]
]
} |
|
<image><image>Which department has more than 1 head at a time? List the id, name and the number of heads. | {
"data": [
[
"2",
"Treasury",
"2"
]
]
} |
|
<image><image>What are the themes of competitions that have corresponding host cities with more than 1000 residents? | {
"data": [
[
"Carnival M is back!"
],
[
"Codehunters"
],
[
"MTV Asia Aid"
]
]
} |
|
<image><image>which course has most number of registered students? | {
"data": [
[
"statistics"
]
]
} |
|
<image><image>Please show the themes of competitions with host cities having populations larger than 1000. | {
"data": [
[
"Carnival M is back!"
],
[
"Codehunters"
],
[
"MTV Asia Aid"
]
]
} |
|
<image><image>What are the ids of all students for courses and what are the names of those courses? | {
"data": [
[
"111",
"statistics"
],
[
"121",
"statistics"
],
[
"141",
"statistics"
],
[
"171",
"statistics"
],
[
"141",
"English"
],
[
"161",
"English"
],
[
"121",
"French"
],
[
"131",
"French"
],
[
"151",
"data structure"
]
]
} |
|
<image><image>what are the first name and last name of all candidates? | {
"data": [
[
"Shannon",
"Senger"
],
[
"Virginie",
"Hartmann"
],
[
"Dariana",
"Bednar"
],
[
"Verna",
"Grant"
],
[
"Hoyt",
"Wintheiser"
],
[
"Mayra",
"Hartmann"
],
[
"Lizeth",
"Bartoletti"
],
[
"Nova",
"Feest"
]
]
} |
|
<image><image>What is the name of the course with the most registered students? | {
"data": [
[
"statistics"
]
]
} |
|
<image><image>How many students attend course English? | {
"data": [
[
"2"
]
]
} |
|
<image><image>What are the first and last names of all the candidates? | {
"data": [
[
"Shannon",
"Senger"
],
[
"Virginie",
"Hartmann"
],
[
"Dariana",
"Bednar"
],
[
"Verna",
"Grant"
],
[
"Hoyt",
"Wintheiser"
],
[
"Mayra",
"Hartmann"
],
[
"Lizeth",
"Bartoletti"
],
[
"Nova",
"Feest"
]
]
} |
|
<image><image>What is the status of the city that has hosted the most competitions? | {
"data": [
[
"Village"
]
]
} |
|
<image><image>What is detail of the student who most recently registered course? | {
"data": [
[
"Martin"
]
]
} |
|
<image><image>How many students are attending English courses? | {
"data": [
[
"2"
]
]
} |
|
<image><image>How many courses does the student with id 171 actually attend? | {
"data": [
[
"1"
]
]
} |
|
<image><image>How many courses do the student whose id is 171 attend? | {
"data": [
[
"1"
]
]
} |
|
<image><image>List the id of students who registered some courses and the number of their registered courses? | {
"data": [
[
"111",
"1"
],
[
"121",
"2"
],
[
"131",
"1"
],
[
"141",
"2"
],
[
"151",
"1"
],
[
"161",
"1"
],
[
"171",
"1"
]
]
} |
|
<image><image>What details do we have on the students who registered for courses most recently? | {
"data": [
[
"Martin"
]
]
} |
|
<image><image>For every student who is registered for some course, how many courses are they registered for? | {
"data": [
[
"111",
"1"
],
[
"121",
"2"
],
[
"131",
"1"
],
[
"141",
"2"
],
[
"151",
"1"
],
[
"161",
"1"
],
[
"171",
"1"
]
]
} |
|
<image><image>What are the details of the student who registered for the most number of courses? | {
"data": [
[
"Martin"
]
]
} |
|
<image><image>What is detail of the student who registered the most number of courses? | {
"data": [
[
"Martin"
]
]
} |
|
<image><image>Find id of the candidate whose email is [email protected]? | {
"data": [
[
"151"
]
]
} |
|
<image><image>What is the id of the candidate whose email is [email protected]? | {
"data": [
[
"151"
]
]
} |
|
<image><image>Find distinct cities of addresses of people? | {
"data": [
[
"South Minnie"
],
[
"Linnealand"
],
[
"East Tavaresburgh"
],
[
"Terencetown"
],
[
"Lake Devon"
],
[
"O'Connellview"
],
[
"New Alta"
],
[
"South Naomibury"
]
]
} |
|
<image><image><image>For each course id, how many students are registered and what are the course names? | {
"data": [
[
"statistics",
"4"
],
[
"English",
"2"
],
[
"French",
"2"
],
[
"data structure",
"1"
]
]
} |
|
<image><image>What are the different cities where people live? | {
"data": [
[
"South Minnie"
],
[
"Linnealand"
],
[
"East Tavaresburgh"
],
[
"Terencetown"
],
[
"Lake Devon"
],
[
"O'Connellview"
],
[
"New Alta"
],
[
"South Naomibury"
]
]
} |
|
<image><image><image>Find distinct cities of address of students? | {
"data": [
[
"South Minnie"
],
[
"Linnealand"
],
[
"East Tavaresburgh"
],
[
"Terencetown"
],
[
"Lake Devon"
],
[
"O'Connellview"
],
[
"New Alta"
],
[
"South Naomibury"
]
]
} |
|
<image><image><image>Find the cell mobile number of the candidates whose assessment code is "Fail"? | {
"data": [
[
"(262)347-9364x516"
]
]
} |
|
<image><image><image>How many registed students do each course have? List course name and the number of their registered students? | {
"data": [
[
"statistics",
"4"
],
[
"English",
"2"
],
[
"French",
"2"
],
[
"data structure",
"1"
]
]
} |
|
<image><image><image>What are the different cities where students live? | {
"data": [
[
"South Minnie"
],
[
"Linnealand"
],
[
"East Tavaresburgh"
],
[
"Terencetown"
],
[
"Lake Devon"
],
[
"O'Connellview"
],
[
"New Alta"
],
[
"South Naomibury"
]
]
} |
|
<image><image>What are the ids of the students who registered course statistics by order of registration date? | {
"data": [
[
"121"
],
[
"111"
],
[
"171"
],
[
"141"
]
]
} |
|
<image><image>What are the ids of the students who attended courses in the statistics department in order of attendance date. | {
"data": [
[
"111"
],
[
"121"
],
[
"141"
],
[
"171"
]
]
} |
|
<image><image><image>What are the cell phone numbers of the candidates that received an assessment code of "Fail"? | {
"data": [
[
"(262)347-9364x516"
]
]
} |
|
<image><image>List the id of students who registered course statistics in the order of registration date. | {
"data": [
[
"121"
],
[
"111"
],
[
"171"
],
[
"141"
]
]
} |
|
<image><image>List the id of students who attended statistics courses in the order of attendance date. | {
"data": [
[
"111"
],
[
"121"
],
[
"141"
],
[
"171"
]
]
} |
|
<image><image>Show the title and publication dates of books. | {
"data": [
[
"The Black Lamb",
"August 2008"
],
[
"Bloody Mary : Lady Liberty",
"March 2008"
],
[
"BrainBanx",
"June 2006"
],
[
"Cyberella",
"October 2005"
],
[
"The Dome: Ground Zero",
"August 2008"
],
[
"Michael Moorcock's Multiverse",
"March 2007"
],
[
"Sheva's War",
"April 2007"
]
]
} |
|
<image><image>Show names of actors and names of musicals they are in. | {
"data": [
[
"Ray Meagher",
"The Phantom of the Opera"
],
[
"Tom Oliver",
"The Phantom of the Opera"
],
[
"Lynne McGranger",
"Les Misérables"
],
[
"Kate Ritchie",
"Les Misérables"
],
[
"Alan Fletcher",
"West Side Story"
],
[
"Jackie Woodburne",
"The Book of Mormon"
],
[
"Ryan Moloney",
"The Book of Mormon"
],
[
"Ian Smith",
"The Book of Mormon"
],
[
"Stefan Dennis",
"The Book of Mormon"
]
]
} |
|
<image><image>Show writers who have published a book with price more than 4000000. | {
"data": [
[
"Timothy Truman"
],
[
"Garth Ennis"
],
[
"Elaine Lee"
]
]
} |
|
<image><image>Show names of actors that have appeared in musical with name "The Phantom of the Opera". | {
"data": [
[
"Ray Meagher"
],
[
"Tom Oliver"
]
]
} |
|
<image><image>Show names of musicals and the number of actors who have appeared in the musicals. | {
"data": [
[
"The Phantom of the Opera",
"2"
],
[
"Les Misérables",
"2"
],
[
"West Side Story",
"1"
],
[
"The Book of Mormon",
"4"
]
]
} |
|
<image><image>Show names of actors in descending order of the year their musical is awarded. | {
"data": [
[
"Ray Meagher"
],
[
"Tom Oliver"
],
[
"Lynne McGranger"
],
[
"Kate Ritchie"
],
[
"Alan Fletcher"
],
[
"Jackie Woodburne"
],
[
"Ryan Moloney"
],
[
"Ian Smith"
],
[
"Stefan Dennis"
]
]
} |
|
<image><image>What are the names of actors and the musicals that they are in? | {
"data": [
[
"Ray Meagher",
"The Phantom of the Opera"
],
[
"Tom Oliver",
"The Phantom of the Opera"
],
[
"Lynne McGranger",
"Les Misérables"
],
[
"Kate Ritchie",
"Les Misérables"
],
[
"Alan Fletcher",
"West Side Story"
],
[
"Jackie Woodburne",
"The Book of Mormon"
],
[
"Ryan Moloney",
"The Book of Mormon"
],
[
"Ian Smith",
"The Book of Mormon"
],
[
"Stefan Dennis",
"The Book of Mormon"
]
]
} |
|
<image><image>How many actors have appeared in each musical? | {
"data": [
[
"The Phantom of the Opera",
"2"
],
[
"Les Misérables",
"2"
],
[
"West Side Story",
"1"
],
[
"The Book of Mormon",
"4"
]
]
} |
|
<image><image>What are the names of actors ordered descending by the year in which their musical was awarded? | {
"data": [
[
"Ray Meagher"
],
[
"Tom Oliver"
],
[
"Lynne McGranger"
],
[
"Kate Ritchie"
],
[
"Alan Fletcher"
],
[
"Jackie Woodburne"
],
[
"Ryan Moloney"
],
[
"Ian Smith"
],
[
"Stefan Dennis"
]
]
} |
|
<image><image>Show the titles of books in descending order of publication price. | {
"data": [
[
"The Black Lamb"
],
[
"Bloody Mary : Lady Liberty"
],
[
"BrainBanx"
],
[
"Cyberella"
],
[
"The Dome: Ground Zero"
],
[
"Michael Moorcock's Multiverse"
],
[
"Sheva's War"
]
]
} |
|
<image><image>Find the names of the users whose number of followers is greater than that of the user named "Tyler Swift". | {
"data": [
[
"Iron Man"
]
]
} |
|
<image><image>What are the names of musicals who have at 3 or more actors? | {
"data": [
[
"The Book of Mormon"
]
]
} |
|
<image><image>What are the names of actors who have been in the musical titled The Phantom of the Opera? | {
"data": [
[
"Ray Meagher"
],
[
"Tom Oliver"
]
]
} |
|
<image><image>Show names of musicals which have at least three actors. | {
"data": [
[
"The Book of Mormon"
]
]
} |
|
<image><image>Find the name and partition id for users who tweeted less than twice. | {
"data": [
[
"Black Widow\n",
"23"
],
[
"Tyler Swift",
"10"
]
]
} |
|
<image><image>Find the name of the user who tweeted more than once, and number of tweets tweeted by them. | {
"data": [
[
"Iron Man",
"2"
],
[
"Susan",
"2"
],
[
"Celine Dion",
"2"
]
]
} |
|
<image><image>Find the names of users who have more than one tweet. | {
"data": [
[
"Iron Man"
],
[
"Susan"
],
[
"Celine Dion"
]
]
} |
|
<image><image>Find the name and email for the users who have more than one follower. | {
"data": [
[
"Iron Man",
"[email protected]"
],
[
"Black Widow\n",
"[email protected]"
],
[
"Tyler Swift",
"[email protected]\n"
]
]
} |
|
<image><image>Find the name of each user and number of tweets tweeted by each of them. | {
"data": [
[
"Iron Man",
"2"
],
[
"Black Widow\n",
"1"
],
[
"Susan",
"2"
],
[
"Tyler Swift",
"1"
],
[
"Celine Dion",
"2"
]
]
} |
|
<image><image>Find the id of users who are followed by Mary or Susan. | {
"data": [
[
"1"
],
[
"3"
]
]
} |
|
<image><image>Find the id of users who are followed by Mary and Susan. | {
"data": []
} |
|
<image><image>What are the name and publication date of the catalogs with catalog level number above 5? | {
"data": [
[
"Coffee Bean",
"2012-04-13 06:37:09"
],
[
"Jam",
"2011-07-22 04:57:19"
]
]
} |
|
<image><image>Find the names and publication dates of all catalogs that have catalog level number greater than 5. | {
"data": [
[
"Coffee Bean",
"2012-04-13 06:37:09"
],
[
"Jam",
"2011-07-22 04:57:19"
]
]
} |
|
<image><image>Find the level name of the catalog with the lowest price (in USD). | {
"data": [
[
"Category"
]
]
} |
|
<image><image>Find the name and attribute ID of the attribute definitions with attribute value 0. | {
"data": [
[
"Yellow",
"3"
],
[
"Black",
"2"
],
[
"Sweet",
"4"
],
[
"Black",
"2"
],
[
"Black",
"2"
],
[
"Sweet",
"4"
],
[
"Yellow",
"3"
],
[
"Sweet",
"4"
]
]
} |
|
<image><image>Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID. | {
"data": [
[
"Yellow",
"3"
],
[
"Black",
"2"
],
[
"Sweet",
"4"
],
[
"Black",
"2"
],
[
"Black",
"2"
],
[
"Sweet",
"4"
],
[
"Yellow",
"3"
],
[
"Sweet",
"4"
]
]
} |
|
<image><image>Find the names of catalog entries with level number 8. | {
"data": [
[
"Ginger Beer"
],
[
"Cola"
],
[
"Cola"
],
[
"Root beer"
],
[
"Carbonated Water"
]
]
} |
|
<image><image>What are the entry names of catalog with the attribute possessed by most entries. | {
"data": [
[
"Wanglaoji"
],
[
"Diet Pepsi"
],
[
"Diet Mountain Dew"
],
[
"Fenta Orange"
],
[
"Wanglaoji"
],
[
"Cola"
],
[
"Ramune"
],
[
"Carbonated Water"
]
]
} |
|
<image><image>Show aircraft names and number of flights for each aircraft. | {
"data": [
[
"Boeing 747-400",
"1"
],
[
"Boeing 737-800",
"1"
],
[
"Airbus A340-300",
"2"
],
[
"Embraer ERJ-145",
"1"
],
[
"SAAB 340",
"1"
],
[
"Piper Archer III",
"1"
],
[
"Lockheed L1011",
"2"
],
[
"Boeing 757-300",
"1"
]
]
} |
|
<image><image>What is the level name of the cheapest catalog (in USD)? | {
"data": [
[
"Category"
]
]
} |
|
<image><image>What is the name of each aircraft and how many flights does each one complete? | {
"data": [
[
"Boeing 747-400",
"1"
],
[
"Boeing 737-800",
"1"
],
[
"Airbus A340-300",
"2"
],
[
"Embraer ERJ-145",
"1"
],
[
"SAAB 340",
"1"
],
[
"Piper Archer III",
"1"
],
[
"Lockheed L1011",
"2"
],
[
"Boeing 757-300",
"1"
]
]
} |
|
<image><image>Find the entry names of the catalog with the attribute that have the most entries. | {
"data": [
[
"Wanglaoji"
],
[
"Diet Pepsi"
],
[
"Diet Mountain Dew"
],
[
"Fenta Orange"
],
[
"Wanglaoji"
],
[
"Cola"
],
[
"Ramune"
],
[
"Carbonated Water"
]
]
} |
|
<image><image>Show all flight numbers with aircraft Airbus A340-300. | {
"data": [
[
"13"
],
[
"7"
]
]
} |
|
<image><image>What are the names of catalog entries with level number 8? | {
"data": [
[
"Ginger Beer"
],
[
"Cola"
],
[
"Cola"
],
[
"Root beer"
],
[
"Carbonated Water"
]
]
} |
|
<image><image>What is the name of the aircraft that was on flight number 99? | {
"data": [
[
"Boeing 747-400"
]
]
} |
|
<image><image>What is the aircraft name for the flight with number 99 | {
"data": [
[
"Boeing 747-400"
]
]
} |
|
<image><image>What are the flight numbers for the aircraft Airbus A340-300? | {
"data": [
[
"13"
],
[
"7"
]
]
} |
|
<image><image>What are the names for all aircrafts with at least 2 flights? | {
"data": [
[
"Airbus A340-300"
],
[
"Lockheed L1011"
]
]
} |
|
<image><image>Show names for all aircraft with at least two flights. | {
"data": [
[
"Airbus A340-300"
],
[
"Lockheed L1011"
]
]
} |
|
<image><image><image><image>What are the names of all aircrafts that John Williams have certificates to be able to fly? | {
"data": [
[
"Boeing 737-800"
],
[
"Boeing 757-300"
]
]
} |
|
<image><image><image><image>Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300. | {
"data": [
[
"Betty Adams"
],
[
"George Wright"
],
[
"Lisa Walker"
],
[
"Mark Young"
]
]
} |
|
<image><image><image><image>Show names for all aircrafts of which John Williams has certificates. | {
"data": [
[
"Boeing 737-800"
],
[
"Boeing 757-300"
]
]
} |
|
<image><image><image>Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate. | {
"data": [
[
"Boeing 747-400"
],
[
"Lockheed L1011"
],
[
"Boeing 777-300"
],
[
"Airbus A340-300"
],
[
"Boeing 767-400ER"
]
]
} |
|
<image><image><image><image>Show names for all employees who do not have certificate of Boeing 737-800. | {
"data": [
[
"Angela Martinez"
],
[
"Barbara Wilson"
],
[
"Chad Stewart"
],
[
"David Anderson"
],
[
"Donald King"
],
[
"Dorthy Lewis"
],
[
"Elizabeth Taylor"
],
[
"Eric Cooper"
],
[
"Haywood Kelly"
],
[
"Jennifer Thomas"
],
[
"Joseph Thompson"
],
[
"Karen Scott"
],
[
"Lawrence Sperry"
],
[
"Linda Davis"
],
[
"Michael Miller"
],
[
"Milo Brooks"
],
[
"Patricia Jones"
],
[
"Richard Jackson"
],
[
"Robert Brown"
],
[
"William Jones"
],
[
"William Moore"
],
[
"William Ward"
]
]
} |
|
<image><image><image><image>Show names for all employees who have certificate of Boeing 737-800. | {
"data": [
[
"John Williams"
],
[
"Mary Johnson"
],
[
"Betty Adams"
],
[
"James Smith"
],
[
"George Wright"
],
[
"Larry West"
],
[
"Mark Young"
],
[
"Lisa Walker"
]
]
} |
|
<image><image><image>what is the salary and name of the employee who has the most number of aircraft certificates? | {
"data": [
[
"George Wright",
"289950"
]
]
} |
|
<image><image><image><image>What are the names of all employees who are not certified to fly Boeing 737-800s? | {
"data": [
[
"Angela Martinez"
],
[
"Barbara Wilson"
],
[
"Chad Stewart"
],
[
"David Anderson"
],
[
"Donald King"
],
[
"Dorthy Lewis"
],
[
"Elizabeth Taylor"
],
[
"Eric Cooper"
],
[
"Haywood Kelly"
],
[
"Jennifer Thomas"
],
[
"Joseph Thompson"
],
[
"Karen Scott"
],
[
"Lawrence Sperry"
],
[
"Linda Davis"
],
[
"Michael Miller"
],
[
"Milo Brooks"
],
[
"Patricia Jones"
],
[
"Richard Jackson"
],
[
"Robert Brown"
],
[
"William Jones"
],
[
"William Moore"
],
[
"William Ward"
]
]
} |
|
<image><image><image><image>What are the names of all employees who can fly both the Boeing 737-800 and the Airbus A340-300? | {
"data": [
[
"Betty Adams"
],
[
"George Wright"
],
[
"Lisa Walker"
],
[
"Mark Young"
]
]
} |
|
<image><image><image>What are the names of the aircraft that the least people are certified to fly? | {
"data": [
[
"Boeing 737-800"
]
]
} |
|
<image><image><image><image>What are the names of all employees who have a certificate to fly Boeing 737-800? | {
"data": [
[
"John Williams"
],
[
"Mary Johnson"
],
[
"Betty Adams"
],
[
"James Smith"
],
[
"George Wright"
],
[
"Larry West"
],
[
"Mark Young"
],
[
"Lisa Walker"
]
]
} |
|
<image><image><image>What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly? | {
"data": [
[
"Boeing 747-400"
],
[
"Lockheed L1011"
],
[
"Boeing 777-300"
],
[
"Airbus A340-300"
],
[
"Boeing 767-400ER"
]
]
} |
|
<image><image><image>Show the name of aircraft which fewest people have its certificate. | {
"data": [
[
"Boeing 737-800"
]
]
} |
|
<image><image><image>How many students who are female are allergic to milk or eggs? | {
"data": [
[
"4"
]
]
} |
|
<image><image><image>How many students have a food allergy? | {
"data": [
[
"28"
]
]
} |
|
<image><image><image>What is the salaray and name of the employee that is certified to fly the most planes? | {
"data": [
[
"George Wright",
"289950"
]
]
} |
|
<image><image><image>How many female students have milk or egg allergies? | {
"data": [
[
"4"
]
]
} |
|
<image><image><image><image>What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000? | {
"data": [
[
"Lisa Walker"
]
]
} |
|
<image><image><image><image>What is the salaray and name of the employee with the most certificates to fly planes more than 5000? | {
"data": [
[
"Lisa Walker"
]
]
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.