aherntech/spider-syn huggingface dataset:
Database: candidate_poll
Question: How many candidates are there?
Paraphrased question: How many candidates are there?
SQL: SELECT count(*) FROM candidate
Database: candidate_poll
Question: Count the number of candidates.
Paraphrased question: Count the number of candidates.
SQL: SELECT count(*) FROM candidate
Database: candidate_poll
Question: Which poll resource provided the most number of candidate information?
Paraphrased question: Which poll resource provided the most number of candidate information?
SQL: SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1
Database: candidate_poll
Question: Return the poll resource associated with the most candidates.
Paraphrased question: Return the poll resource associated with the most candidates.
SQL: SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY count(*) DESC LIMIT 1
Database: candidate_poll
Question: what are the top 3 highest support rates?
Paraphrased question: what are the top 3 highest support rates?
SQL: SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
Database: candidate_poll
Question: Return the top 3 greatest support rates.
Paraphrased question: Return the top 3 greatest support rates.
SQL: SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
Database: candidate_poll
Question: Find the id of the candidate who got the lowest oppose rate.
Paraphrased question: Find the id of the candidate who got the lowest oppose rate.
SQL: SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
Database: candidate_poll
Question: What is the id of the candidate with the lowest oppose rate?
Paraphrased question: What is the id of the candidate with the lowest oppose rate?
SQL: SELECT Candidate_ID FROM candidate ORDER BY oppose_rate LIMIT 1
Database: candidate_poll
Question: Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.
Paraphrased question: Please list the rate of support, consideration, and oppose rates for each candidate in ascending order by unsure rate.
SQL: SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate
Database: candidate_poll
Question: What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate?
Paraphrased question: What are the rates of support, consideration, and oppose rates of each candidate, ordered ascending by their unsure rate?
SQL: SELECT Support_rate ,  Consider_rate ,  Oppose_rate FROM candidate ORDER BY unsure_rate
Database: candidate_poll
Question: which poll source does the highest oppose rate come from?
Paraphrased question: which poll source does the highest oppose rate come from?
SQL: SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1
Database: candidate_poll
Question: Return the poll source corresponding to the candidate who has the oppose rate.
Paraphrased question: Return the poll source corresponding to the candidate who has the oppose rate.
SQL: SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1
Database: candidate_poll
Question: List all people names in the order of their date of birth from old to young.
Paraphrased question: List all people names in the order of their date of birth from old to young.
SQL: SELECT name FROM people ORDER BY date_of_birth
Database: candidate_poll
Question: What are the names of all people, ordered by their date of birth?
Paraphrased question: What are the names of all people, ordered by their day of birth?
SQL: SELECT name FROM people ORDER BY date_of_birth
Database: candidate_poll
Question: Find the average height and weight for all males (sex is M).
Paraphrased question: Find the average stature and weight for all males (sex is M).
SQL: SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  'M'
Database: candidate_poll
Question: What are the average height and weight across males (sex is M)?
Paraphrased question: What are the average stature and weight across males (sex is M)?
SQL: SELECT avg(height) ,  avg(weight) FROM people WHERE sex  =  'M'
Database: candidate_poll
Question: find the names of people who are taller than 200 or lower than 190.
Paraphrased question: find the names of people who are taller than 200 or lower than 190.
SQL: SELECT name FROM people WHERE height  >  200 OR height  <  190
Database: candidate_poll
Question: What are the names of people who have a height greater than 200 or less than 190?
Paraphrased question: What are the names of people who have a height greater than 200 or less than 190?
SQL: SELECT name FROM people WHERE height  >  200 OR height  <  190
Database: candidate_poll
Question: Find the average and minimum weight for each gender.
Paraphrased question: Find the average and minimum weight for each gender.
SQL: SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex
Database: candidate_poll
Question: What are the average and minimum weights for people of each sex?
Paraphrased question: What are the average and minimum weights for people of each gender?
SQL: SELECT avg(weight) ,  min(weight) ,  sex FROM people GROUP BY sex
Database: candidate_poll
Question: Find the name and gender of the candidate who got the highest support rate.
Paraphrased question: Find the name and gender of the candidate who got the highest support rate.
SQL: SELECT t1.name ,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
Database: candidate_poll
Question: What is the name and sex of the candidate with the highest support rate?
Paraphrased question: What is the name and gender of the candidate with the highest support rate?
SQL: SELECT t1.name ,  t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
Database: candidate_poll
Question: Find the name of the candidates whose oppose percentage is the lowest for each sex.
Paraphrased question: Find the name of the candidates whose oppose percentage is the lowest for each gender.
SQL: SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex
Database: candidate_poll
Question: For each sex, what is the name and sex of the candidate with the oppose rate for their sex?
Paraphrased question: For each gender, what is the name and gender of the candidate with the oppose rate for their gender?
SQL: SELECT t1.name ,  t1.sex ,  min(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex
Database: candidate_poll
Question: which gender got the highest average uncertain ratio.
Paraphrased question: which gender got the highest average uncertain ratio.
SQL: SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1
Database: candidate_poll
Question: What is the sex of the candidate who had the highest unsure rate?
Paraphrased question: What is the gender of the candidate who had the highest unsure rate?
SQL: SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id GROUP BY t1.sex ORDER BY avg(t2.unsure_rate) DESC LIMIT 1
Database: candidate_poll
Question: what are the names of people who did not participate in the candidate election.
Paraphrased question: what are the names of people who did not participate in the candidate election.
SQL: SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)
Database: candidate_poll
Question: Give the names of people who did not participate in the candidate election.
Paraphrased question: Give the names of people who did not participate in the candidate election.
SQL: SELECT name FROM people WHERE people_id NOT IN (SELECT people_id FROM candidate)
Database: candidate_poll
Question: Find the names of the candidates whose support percentage is lower than their oppose rate.
Paraphrased question: Find the names of the candidates whose support percentage is lower than their oppose rate.
SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate
Database: candidate_poll
Question: What are the names of candidates who have a lower support rate than oppose rate?
Paraphrased question: What are the names of candidates who have a lower support rate than oppose rate?
SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t2.support_rate  <  t2.oppose_rate
Database: candidate_poll
Question: how many people are there whose weight is higher than 85 for each gender?
Paraphrased question: how many people are there whose weight is higher than 85 for each gender?
SQL: SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex
Database: candidate_poll
Question: Count the number of people of each sex who have a weight higher than 85.
Paraphrased question: Count the number of people of each gender who have a weight higher than 85.
SQL: SELECT count(*) ,  sex FROM people WHERE weight  >  85 GROUP BY sex
Database: candidate_poll
Question: find the highest support percentage, lowest consider rate and oppose rate of all candidates.
Paraphrased question: find the highest support percentage, lowest consider rate and oppose rate of all candidates.
SQL: SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate
Database: candidate_poll
Question: Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates?
Paraphrased question: Return the maximum support percentage, minimum consider percentage, and minimum oppose percentage across all candidates?
SQL: SELECT max(support_rate) ,  min(consider_rate) ,  min(oppose_rate) FROM candidate
Database: candidate_poll
Question: list all female (sex is F) candidate names in the alphabetical order.
Paraphrased question: list all female (sex is F) candidate names in the alphabetical order.
SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F' ORDER BY t1.name
Database: candidate_poll
Question: What are the names of all female candidates in alphabetical order (sex is F)?
Paraphrased question: What are the names of all female candidates in alphabetical order (sex is F)?
SQL: SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id  =  t2.people_id WHERE t1.sex  =  'F' ORDER BY t1.name
Database: candidate_poll
Question: find the name of people whose height is lower than the average.
Paraphrased question: find the name of people whose stature is lower than the average.
SQL: SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)
Database: candidate_poll
Question: What are the names of people who are shorter than average?
Paraphrased question: What are the names of people who are shorter than average?
SQL: SELECT name FROM people WHERE height  <  (SELECT avg(height) FROM people)
Database: candidate_poll
Question: List all info about all people.
Paraphrased question: List all info about all people.
SQL: SELECT * FROM people
Database: candidate_poll
Question: What is all the information about all people?
Paraphrased question: What is all the information about all people?
SQL: SELECT * FROM people
Database: movie_1
Question: Find the titles of all movies directed by steven spielberg.
Paraphrased question: Find the titles of all films directed by steven spielberg.
SQL: SELECT title FROM Movie WHERE director = 'Steven Spielberg'
Database: movie_1
Question: What are the names of all movies directed by Steven Spielberg?
Paraphrased question: What are the names of all films directed by Steven Spielberg?
SQL: SELECT title FROM Movie WHERE director = 'Steven Spielberg'
Database: movie_1
Question: What is the name of the movie produced after 2000 and directed by James Cameron?
Paraphrased question: What is the name of the film produced after 2000 and directed by James Cameron?
SQL: SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR  >  2000
Database: movie_1
Question: What are the titles of all movies that James Cameron directed after 2000?
Paraphrased question: What are the titles of all films that James Cameron directed after 2000?
SQL: SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR  >  2000
Database: movie_1
Question: How many movies were made before 2000?
Paraphrased question: How many films were made before 2000?
SQL: SELECT count(*) FROM Movie WHERE YEAR  <  2000
Database: movie_1
Question: Who is the director of movie Avatar?
Paraphrased question: Who directed movie Avatar?
SQL: SELECT director FROM Movie WHERE title  = 'Avatar'
Database: movie_1
Question: Who directed Avatar?
Paraphrased question: Who directed Avatar?
SQL: SELECT director FROM Movie WHERE title  = 'Avatar'
Database: movie_1
Question: How many reviewers listed?
Paraphrased question: How many reviewers listed?
SQL: SELECT count(*) FROM Reviewer
Database: movie_1
Question: How many reviewers are there?
Paraphrased question: How many reviewers are there?
SQL: SELECT count(*) FROM Reviewer
Database: movie_1
Question: What is the id of the reviewer whose name has substring “Mike”?
Paraphrased question: What is the id of the reviewer whose name has substring “Mike”?
SQL: SELECT rID FROM Reviewer WHERE name LIKE "%Mike%"
Database: movie_1
Question: What is the id of the reviewer whose name includes the word "Mike"?
Paraphrased question: What is the id of the reviewer whose name includes the word "Mike"?
SQL: SELECT rID FROM Reviewer WHERE name LIKE "%Mike%"
Database: movie_1
Question: What is the reviewer id of Daniel Lewis?
Paraphrased question: What is the reviewer id of Daniel Lewis?
SQL: SELECT rID FROM Reviewer WHERE name  =  "Daniel Lewis"
Database: movie_1
Question: What is the id of the reviewer named Daniel Lewis?
Paraphrased question: What is the id of the reviewer named Daniel Lewis?
SQL: SELECT rID FROM Reviewer WHERE name  =  "Daniel Lewis"
Database: movie_1
Question: What is the total number of ratings that has more than 3 stars?
Paraphrased question: What is the total number of scores that has more than 3 stars?
SQL: SELECT count(*) FROM Rating WHERE stars  >  3
Database: movie_1
Question: How many movie ratings have more than 3 stars?
Paraphrased question: How many film scores have more than 3 stars?
SQL: SELECT count(*) FROM Rating WHERE stars  >  3
Database: movie_1
Question: What is the lowest and highest rating star?
Paraphrased question: What is the lowest and highest rating star?
SQL: SELECT max(stars) ,  min(stars) FROM Rating
Database: movie_1
Question: What is the maximum and mininum number of stars a rating can receive?
Paraphrased question: What is the maximum and mininum number of stars a rating can receive?
SQL: SELECT max(stars) ,  min(stars) FROM Rating
Database: movie_1
Question: Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.
Paraphrased question: Find all years that have a film that received a rating of 4 or 5, and sort them in increasing order of year.
SQL: SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year
Database: movie_1
Question: In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?
Paraphrased question: In what years did a film receive a 4 or 5 star rating, and list the years from oldest to most recently?
SQL: SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  >=  4 ORDER BY T1.year
Database: movie_1
Question: What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.
Paraphrased question: What are the names of directors who directed movies with 5 star rating? Also return the title of these films.
SQL: SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5
Database: movie_1
Question: What are the names of the directors who created a movie with a 5 star rating, and what was the name of those movies?
Paraphrased question: What are the names of the directors who created a film with a 5 star rating, and what was the name of those films?
SQL: SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5
Database: movie_1
Question: What is the average rating star for each reviewer?
Paraphrased question: What is the average rating star for each reviewer?
SQL: SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name
Database: movie_1
Question: What is the average number of stars that each reviewer awards for a movie?
Paraphrased question: What is the average number of stars that each reviewer awards for a movie?
SQL: SELECT T2.name ,  avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T2.name
Database: movie_1
Question: Find the titles of all movies that have no ratings.
Paraphrased question: Find the titles of all films that have no scores.
SQL: SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)
Database: movie_1
Question: What are the titles of all movies that have not been rated?
Paraphrased question: What are the titles of all films that have not been rated?
SQL: SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)
Database: movie_1
Question: Find the names of all reviewers who have ratings with a NULL value for the date.
Paraphrased question: Find the names of all reviewers who have scores with a NULL value for the date.
SQL: SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  "null"
Database: movie_1
Question: What are the different names of all reviewers whose ratings do not have a date field?
Paraphrased question: What are the different names of all reviewers whose scores do not have a date field?
SQL: SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID  =  T2.rID WHERE ratingDate  =  "null"
Database: movie_1
Question: What is the average rating stars and title for the oldest movie?
Paraphrased question: What is the average rating stars and title for the oldest movie?
SQL: SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)
Database: movie_1
Question: For the oldest movie listed, what is its average rating and title?
Paraphrased question: For the oldest film listed, what is its average score and title?
SQL: SELECT avg(T1.stars) ,  T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT min(YEAR) FROM Movie)
Database: movie_1
Question: What is the name of the most recent movie?
Paraphrased question: What is the name of the most recent film?
SQL: SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)
Database: movie_1
Question: What is the title of the newest movie?
Paraphrased question: What is the title of the newest film?
SQL: SELECT title FROM Movie WHERE YEAR  =  (SELECT max(YEAR) FROM Movie)
Database: movie_1
Question: What is the maximum stars and year for the most recent movie?
Paraphrased question: What is the maximum stars and year for the most recent film?
SQL: SELECT max(T1.stars) ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)
Database: movie_1
Question: What is highest rating for the most recent movie and when was it released?
Paraphrased question: What is highest score for the most recent movie and when was it released?
SQL: SELECT max(T1.stars) ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.year  =  (SELECT max(YEAR) FROM Movie)
Database: movie_1
Question: What is the names of movies whose created year is after all movies directed by Steven Spielberg?
Paraphrased question: What is the names of films whose created year is after all films directed by Steven Spielberg?
SQL: SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  "Steven Spielberg")
Database: movie_1
Question: What are the names of all movies that were created after the most recent Steven Spielberg film?
Paraphrased question: What are the names of all films that were created after the most recent Steven Spielberg film?
SQL: SELECT title FROM Movie WHERE YEAR  >  (SELECT max(YEAR) FROM Movie WHERE director  =  "Steven Spielberg")
Database: movie_1
Question: What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?
Paraphrased question: What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?
SQL: SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  "James Cameron")
Database: movie_1
Question: What are the titles and directors of all movies that have a rating higher than the average James Cameron film rating?
Paraphrased question: What are the titles and directors of all films that have a score higher than the average James Cameron film score?
SQL: SELECT T2.title ,  T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  >  (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T2.director  =  "James Cameron")
Database: movie_1
Question: Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.
Paraphrased question: Return reviewer name, film name, stars, and ratingDate. And sort the data first by reviewer name, then by film name, and lastly by number of stars.
SQL: SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars
Database: movie_1
Question: What is the reviewer name, film title, movie rating, and rating date  for every movie ordered by reviewer name, movie title, then finally rating?
Paraphrased question: What is the reviewer name, film name, film rating, and rating day  for every film ordered by reviewer name, film name, then finally rating?
SQL: SELECT T3.name ,  T2.title ,  T1.stars ,  T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID ORDER BY T3.name ,  T2.title ,  T1.stars
Database: movie_1
Question: Find the names of all reviewers who have contributed three or more ratings.
Paraphrased question: Find the names of all reviewers who have contributed three or more scores.
SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3
Database: movie_1
Question: What are the names of all reviewers that have rated 3 or more movies?
Paraphrased question: What are the names of all reviewers that have rated 3 or more movies?
SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID GROUP BY T1.rID HAVING COUNT(*)  >=  3
Database: movie_1
Question: Find the names of all reviewers who rated Gone with the Wind.
Paraphrased question: Find the names of all reviewers who rated Gone with the Wind.
SQL: SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  'Gone with the Wind'
Database: movie_1
Question: What are the names of all the different reviewers who rates Gone with the Wind?
Paraphrased question: What are the names of all the different reviewers who rates Gone with the Wind?
SQL: SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.title  =  'Gone with the Wind'
Database: movie_1
Question: Find the names of all directors whose movies are rated by Sarah Martinez.
Paraphrased question: Find the names of all directors whose movies are rated by Sarah Martinez.
SQL: SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Sarah Martinez'
Database: movie_1
Question: What are the names of all directors whose movies have been reviewed by Sarah Martinez?
Paraphrased question: What are the names of all directors whose movies have been reviewed by Sarah Martinez?
SQL: SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Sarah Martinez'
Database: movie_1
Question: For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.
Paraphrased question: For any score where the name of reviewer is the same as the director of the film, return the reviewer name, film name, and number of stars.
SQL: SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name
Database: movie_1
Question: What are the different reviewer names, movie titles, and stars for every rating where the reviewer had the same name as the director?
Paraphrased question: What are the different reviewer names, film names and stars for every rating where the reviewer had the same name as the director?
SQL: SELECT DISTINCT T3.name ,  T2.title ,  T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T2.director  =  T3.name
Database: movie_1
Question: Return all reviewer names and movie names together in a single list.
Paraphrased question: Return all reviewer names and film names together in a single list.
SQL: SELECT name FROM Reviewer UNION SELECT title FROM Movie
Database: movie_1
Question: What are the names of all the reviewers and movie names?
Paraphrased question: What are the names of all the reviewers and film names?
SQL: SELECT name FROM Reviewer UNION SELECT title FROM Movie
Database: movie_1
Question: Find the titles of all movies not reviewed by Chris Jackson.
Paraphrased question: Find the titles of all films not reviewed by Chris Jackson.
SQL: SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Chris Jackson'
Database: movie_1
Question: What are the titles of all movies that were not reviewed by Chris Jackson?
Paraphrased question: What are the titles of all films that were not reviewed by Chris Jackson?
SQL: SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Chris Jackson'
Database: movie_1
Question: For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.
Paraphrased question: For all directors who directed more than one film, return the titles of all films directed by them, along with the director name. Sort by director name, then film name.
SQL: SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title
Database: movie_1
Question: For all directors who have directed more than one movie, what movies have they directed and what are their names?
Paraphrased question: For all directors who have directed more than one film, what films have they directed and what are their names?
SQL: SELECT T1.title ,  T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title ORDER BY T1.director ,  T1.title
Database: movie_1
Question: For directors who had more than one movie, return the titles and produced years of all movies directed by them.
Paraphrased question: For directors who had more than one film, return the titles and produced years of all films directed by them.
SQL: SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title
Database: movie_1
Question: For each director who directed more than one movie, what are the titles and dates of release for all those movies?
Paraphrased question: For each director who directed more than one film, what are the titles and dates of release for all those films?
SQL: SELECT T1.title ,  T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director  =  T2.director WHERE T1.title != T2.title
Database: movie_1
Question: What are the names of the directors who made exactly one movie?
Paraphrased question: What are the names of the directors who made exactly one film?
SQL: SELECT director FROM Movie GROUP BY director HAVING count(*)  =  1
Database: movie_1
Question: What are the names of all directors who made one movie?
Paraphrased question: What are the names of all directors who made one film?
SQL: SELECT director FROM Movie GROUP BY director HAVING count(*)  =  1
Database: movie_1
Question: What are the names of the directors who made exactly one movie excluding director NULL?
Paraphrased question: What are the names of the directors who made exactly one film excluding director NULL?
SQL: SELECT director FROM Movie WHERE director != "null" GROUP BY director HAVING count(*)  =  1
Database: movie_1
Question: What are the names of all directors who have made one movie except for the director named NULL?
Paraphrased question: What are the names of all directors who have made one film except for the director named NULL?
SQL: SELECT director FROM Movie WHERE director != "null" GROUP BY director HAVING count(*)  =  1
Database: movie_1
Question: How many movie reviews does each director get?
Paraphrased question: How many film reviews does each director get?
SQL: SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director
Database: movie_1
Question: For each director, how many reviews have they received?
Paraphrased question: For each director, how many reviews have they received?
SQL: SELECT count(*) ,  T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID GROUP BY T1.director
Database: movie_1
Question: Find the movies with the highest average rating. Return the movie titles and average rating.
Paraphrased question: Find the films with the highest average score. Return the film names and average score.
SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1
Database: movie_1
Question: What are the movie titles with the highest average rating and what are those ratings?
Paraphrased question: What are the film names with the highest average score and what are those scores?
SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1
Database: movie_1
Question: What are the movie titles and average rating of the movies with the lowest average rating?
Paraphrased question: What are the film titles and average score of the film with the lowest average score?
SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1
Database: movie_1
Question: What are the titles and average ratings for all movies that have the lowest average rating?
Paraphrased question: What are the titles and average scores for all films that have the lowest average score?
SQL: SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1
Database: movie_1
Question: What are the names and years of the movies that has the top 3 highest rating star?
Paraphrased question: What are the names and years of the films that has the top 3 highest rating star?
SQL: SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3
Database: movie_1
Question: What are the names and years released for the movies with the top 3 highest ratings?
Paraphrased question: What are the names and years released for the movies with the top 3 highest scores?
SQL: SELECT T2.title ,  T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID ORDER BY T1.stars DESC LIMIT 3
Database: movie_1
Question: For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.
Paraphrased question: For each director, return the director's name together with the title of the movie they directed that received the highest score among all of their movies, and the value of that score. Ignore movies whose director is NULL.
SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != "null" GROUP BY director
Database: movie_1
Question: For each director, what are the titles and ratings for all the movies they reviewed?
Paraphrased question: For each director, what are the titles and scores for all the movies they reviewed?
SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE director != "null" GROUP BY director
Database: movie_1
Question: Find the title and star rating of the movie that got the least rating star for each reviewer.
Paraphrased question: Find the title and star rating of the movie that got the least rating star for each reviewer.
SQL: SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID
Database: movie_1
Question: For each reviewer id, what is the title and rating for the movie with the smallest rating?
Paraphrased question: For each reviewer id, what is the title and score for the movie with the smallest score?
SQL: SELECT T2.title ,  T1.rID ,  T1.stars ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.rID
Database: movie_1
Question: Find the title and score of the movie with the lowest rating among all movies directed by each director.
Paraphrased question: Find the title and score of the film with the lowest rating among all films directed by each director.
SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director
Database: movie_1
Question: For each director, what is the title and score of their most poorly rated movie?
Paraphrased question: For each director, what is the title and score of their most poorly rated movie?
SQL: SELECT T2.title ,  T1.stars ,  T2.director ,  min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T2.director
Database: movie_1
Question: What is the name of the movie that is rated by most of times?
Paraphrased question: What is the name of the film that is rated by most of times?
SQL: SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1
Database: movie_1
Question: What is the name of the movie that has been reviewed the most?
Paraphrased question: What is the name of the film that has been reviewed the most?
SQL: SELECT T2.title ,  T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1
Database: movie_1
Question: What are the titles of all movies that have rating star is between 3 and 5?
Paraphrased question: What are the titles of all movies that have rating star is between 3 and 5?
SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5
Database: movie_1
Question: What are the titles of all movies that have between 3 and 5 stars?
Paraphrased question: What are the titles of all movies that have between 3 and 5 stars?
SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars BETWEEN 3 AND 5
Database: movie_1
Question: Find the names of reviewers who had given higher than 3 star ratings.
Paraphrased question: Find the names of reviewers who had given higher than 3 star ratings.
SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3
Database: movie_1
Question: What are the names of the reviewers who have rated a movie more than 3 stars before?
Paraphrased question: What are the names of the reviewers who have rated a movie more than 3 stars before?
SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  >  3
Database: movie_1
Question: Find the average rating star for each movie that are not reviewed by Brittany Harris.
Paraphrased question: Find the average score star for each movie that are not reviewed by Brittany Harris.
SQL: SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "Brittany Harris") GROUP BY mID
Database: movie_1
Question: What is the average rating for each movie that has never been reviewed by Brittany Harris?
Paraphrased question: What is the average score for each movie that has never been reviewed by Brittany Harris?
SQL: SELECT mID ,  avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "Brittany Harris") GROUP BY mID
Database: movie_1
Question: What are the ids of the movies that are not reviewed by Brittany Harris.
Paraphrased question: What are the ids of the films that are not reviewed by Brittany Harris.
SQL: SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "Brittany Harris"
Database: movie_1
Question: What are the ids of all moviest hat have not been reviewed by Britanny Harris?
Paraphrased question: What are the ids of all moviest hat have not been reviewed by Britanny Harris?
SQL: SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T2.name  =  "Brittany Harris"
Database: movie_1
Question: Find the average rating star for each movie that received at least 2 ratings.
Paraphrased question: Find the average rating star for each film that received at least 2 ratings.
SQL: SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2
Database: movie_1
Question: For each movie that received more than 3 reviews, what is the average rating?
Paraphrased question: For each film that received more than 3 reviews, what is the average score?
SQL: SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2
Database: movie_1
Question: find the ids of reviewers who did not give 4 star.
Paraphrased question: find the ids of reviewers who did not give 4 star.
SQL: SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4
Database: movie_1
Question: What are the ids of all reviewers who did not give 4 stars?
Paraphrased question: What are the ids of all reviewers who did not give 4 stars?
SQL: SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars  =  4
Database: movie_1
Question: Find the ids of reviewers who didn't only give 4 star.
Paraphrased question: Find the ids of reviewers who didn't only give 4 star.
SQL: SELECT rID FROM Rating WHERE stars != 4
Database: movie_1
Question: What are the ids of all reviewers who have not given 4 stars at least once?
Paraphrased question: What are the ids of all reviewers who have not given 4 stars at least once?
SQL: SELECT rID FROM Rating WHERE stars != 4
Database: movie_1
Question: What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?
Paraphrased question: What are names of the films that are either made after 2000 or reviewed by Brittany Harris?
SQL: SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Brittany Harris' OR T2.year  >  2000
Database: movie_1
Question: What are the names of all movies that were made after 2000 or reviewed by Brittany Harris?
Paraphrased question: What are the names of all films that were made after 2000 or reviewed by Brittany Harris?
SQL: SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Brittany Harris' OR T2.year  >  2000
Database: movie_1
Question: What are names of the movies that are either made before 1980 or directed by James Cameron?
Paraphrased question: What are names of the films that are either made before 1980 or directed by James Cameron?
SQL: SELECT title FROM Movie WHERE director  =  "James Cameron" OR YEAR   <  1980
Database: movie_1
Question: What are the names of all movies made before 1980 or had James Cameron as the director?
Paraphrased question: What are the names of all films made before 1980 or had James Cameron as the director?
SQL: SELECT title FROM Movie WHERE director  =  "James Cameron" OR YEAR   <  1980
Database: movie_1
Question: What are the names of reviewers who had rated 3 star and 4 star?
Paraphrased question: What are the names of reviewers who had rated 3 star and 4 star?
SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4
Database: movie_1
Question: What are the names of all reviewers that have given 3 or 4 stars for reviews?
Paraphrased question: What are the names of all reviewers that have given 3 or 4 stars for reviews?
SQL: SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID  =  T2.rID WHERE T1.stars  =  4
Database: movie_1
Question: What are the names of movies that get 3 star and 4 star?
Paraphrased question: What are the names of films that get 3 star and 4 star?
SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  4
Database: movie_1
Question: What are the names of all movies that received 3 or 4 stars?
Paraphrased question: What are the names of all films that received 3 or 4 stars?
SQL: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID WHERE T1.stars  =  4
Database: county_public_safety
Question: How many counties are there?
Paraphrased question: How many counties are there?
SQL: SELECT count(*) FROM county_public_safety
Database: county_public_safety
Question: Count the number of countries.
Paraphrased question: Count the number of countries.
SQL: SELECT count(*) FROM county_public_safety
Database: county_public_safety
Question: List the names of counties in descending order of population.
Paraphrased question: List the names of counties in descending order of population.
SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC
Database: county_public_safety
Question: What are the names of the counties of public safety, ordered by population descending?
Paraphrased question: What are the names of the counties of public safety, ordered by population descending?
SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC
Database: county_public_safety
Question: List the distinct police forces of counties whose location is not on east side.
Paraphrased question: List the different police forces of counties whose location is not on east side.
SQL: SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != "East"
Database: county_public_safety
Question: What are the different police forces of counties that are not located in the East?
Paraphrased question: What are the different police forces of counties that are not located in the East?
SQL: SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION != "East"
Database: county_public_safety
Question: What are the minimum and maximum crime rate of counties?
Paraphrased question: What are the minimum and maximum crime rate of counties?
SQL: SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety
Database: county_public_safety
Question: Return the minimum and maximum crime rates across all counties.
Paraphrased question: Return the minimum and maximum crime rates across all counties.
SQL: SELECT min(Crime_rate) ,  max(Crime_rate) FROM county_public_safety
Database: county_public_safety
Question: Show the crime rates of counties in ascending order of number of police officers.
Paraphrased question: Show the crime rates of counties in ascending order of number of police officers.
SQL: SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC
Database: county_public_safety
Question: What are the crime rates of counties sorted by number of offices ascending?
Paraphrased question: What are the crime rates of counties sorted by number of offices ascending?
SQL: SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers ASC
Database: county_public_safety
Question: What are the names of cities in ascending alphabetical order?
Paraphrased question: What are the names of towns in ascending alphabetical order?
SQL: SELECT Name FROM city ORDER BY Name ASC
Database: county_public_safety
Question: Return the names of cities, ordered alphabetically.
Paraphrased question: Return the names of towns, ordered alphabetically.
SQL: SELECT Name FROM city ORDER BY Name ASC
Database: county_public_safety
Question: What are the percentage of hispanics in cities with the black percentage higher than 10?
Paraphrased question: What are the percentage of hispanics in towns with the black percentage higher than 10?
SQL: SELECT Hispanic FROM city WHERE Black  >  10
Database: county_public_safety
Question: Return the hispanic percentage for cities in which the black percentage is greater than 10.
Paraphrased question: Return the hispanic percentage for towns in which the black percentage is greater than 10.
SQL: SELECT Hispanic FROM city WHERE Black  >  10
Database: county_public_safety
Question: List the name of the county with the largest population.
Paraphrased question: List the name of the county with the largest population.
SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1
Database: county_public_safety
Question: What is the name of the county with the greatest population?
Paraphrased question: What is the name of the county with the greatest population?
SQL: SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1
Database: county_public_safety
Question: List the names of the city with the top 5 white percentages.
Paraphrased question: List the names of the town with the top 5 white percentages.
SQL: SELECT Name FROM city ORDER BY White DESC LIMIT 5
Database: county_public_safety
Question: What are the names of the five cities with the greatest proportion of white people?
Paraphrased question: What are the names of the five towns with the greatest proportion of white people?
SQL: SELECT Name FROM city ORDER BY White DESC LIMIT 5
Database: county_public_safety
Question: Show names of cities and names of counties they are in.
Paraphrased question: Show names of towns and names of counties they are in.
SQL: SELECT T1.Name ,  T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID
Database: county_public_safety
Question: What are the names of cities, as well as the names of the counties they correspond to?
Paraphrased question: What are the names of towns, as well as the names of the counties they correspond to?
SQL: SELECT T1.Name ,  T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID
Database: county_public_safety
Question: Show white percentages of cities and the crime rates of counties they are in.
Paraphrased question: Show percentages of caucasian in the cities and the crime rates of counties they are in.
SQL: SELECT T1.White ,  T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID  =  T2.County_ID