Chinastark/bird_dataset huggingface dataset:
Database: disney
Question: How many movies were released by Disney between 2010 and 2016?
Evidence: Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';
SQL: SELECT COUNT(movie_title) FROM characters WHERE SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) BETWEEN '10' AND '16'
Database: disney
Question: Who was the first ever Disney villain?
Evidence: the first ever villian is villian that was released before all others in time which refers to substr(release_date, length(release_date) - 1, length(release_date)) desc limit 1;
SQL: SELECT villian FROM characters ORDER BY SUBSTR(release_date, LENGTH(release_date) - 1, LENGTH(release_date)) DESC LIMIT 1
Database: disney
Question: What is Disney's highest grossing action movie?
Evidence: action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)
SQL: SELECT movie_title FROM movies_total_gross WHERE genre = 'Action' ORDER BY CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
Database: disney
Question: Which actor voices Akela from The Jungle Book?
Evidence: Akela refers character = 'Akela'; which actor voices refers to voice-actor;
SQL: SELECT `voice-actor` FROM `voice-actors` WHERE character = 'Akela'
Database: disney
Question: Determine Disney's total box office gross between 2010 and 2016.
Evidence: between 2010 and 2016 refers to Year between 2010 and 2016;
SQL: SELECT SUM(Total) FROM revenue WHERE `Year` BETWEEN 2010 AND 2016
Database: disney
Question: Name the main character of Disney's most popular adventure movie based on its inflation-adjusted gross.
Evidence: adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);
SQL: SELECT T2.hero FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title WHERE T1.genre = 'Adventure' ORDER BY CAST(REPLACE(trim(T1.inflation_adjusted_gross, '$'), ',', '') AS REAL) DESC LIMIT 1
Database: disney
Question: Name the director of Disney's lowest grossing movie.
Evidence: lowest grossing movie refers to movie_title where MIN(total_gross);
SQL: SELECT T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) ASC LIMIT 1
Database: disney
Question: Find out what proportion of total revenue Walt Disney Parks and Resorts received in 2010.
Evidence: DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;
SQL: SELECT SUM(`Walt Disney Parks and Resorts`) / SUM(Total) * 100 FROM revenue WHERE year = 2010
Database: disney
Question: Determine the average gross for Disney's PG-13-rated action movies.
Evidence: DIVIDE(SUM(total_gross where genre = 'Action' and MPAA_rating = 'PG-13'), COUNT(movie_title where genre = 'Action' and MPAA_rating = 'PG-13'));
SQL: SELECT SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) / COUNT(movie_title) FROM movies_total_gross WHERE MPAA_rating = 'PG-13'
Database: disney
Question: How many voice-actors were involved in the Bambi movie?
Evidence: Bambi is the name of the movie which refers to movie = 'Bambi';
SQL: SELECT COUNT(DISTINCT 'voice-actor') FROM `voice-actors` WHERE movie = 'Bambi'
Database: disney
Question: Find the estimated inflation rate that was used to adjust the 1995 box office revenue for Disney's films.
Evidence: DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';
SQL: SELECT SUM(CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL)) / SUM(CAST(REPLACE(trim(total_gross, '$'), ',', '') AS REAL)) FROM movies_total_gross WHERE SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995' GROUP BY SUBSTR(release_date, LENGTH(release_date) - 3, LENGTH(release_date)) = '1995'
Database: disney
Question: What is the difference in the current gross of Cars and its sequel, Cars 2? Which movie is more popular?
Evidence: SUBTRACT(inflation_adjusted_gross where movie_title = 'Cars', inflation_adjusted_gross where movie_title = 'Cars 2'); more popular movie refers to movie_title where MAX(inflation_adjusted_gross);
SQL: SELECT SUM(CASE WHEN movie_title = 'Cars' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END), SUM(CASE WHEN movie_title = 'Cars 2' THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END) FROM movies_total_gross
Database: disney
Question: Name the most recent movie directed by Chris Buck. Which of his movies was more successful in terms of grossing? Use the current gross for comparison.
Evidence: Chris Buck refers to director = 'Chris Buck'; the most recent movie refers to movie_title where MAX(release_date); current gross refers to inflation_adjusted_gross; more successful movie refers to MAX(inflation_adjusted_gross);
SQL: SELECT T1.movie_title, MAX(T1.release_date), MAX(T1.inflation_adjusted_gross) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Chris Buck'
Database: disney
Question: Name actors who voiced more than five Disney characters.
Evidence: Actors who voiced refer to voice-actor;
SQL: SELECT 'voice-actor' FROM `voice-actors` GROUP BY 'voice-actor' HAVING COUNT(movie) > 5
Database: disney
Question: Name the top 5 highest-grossing Disney movies adjusted for inflation. Identify the percentage they contributed to the total of Disney's current gross.
Evidence: The top 5 highest-grossing movies adjusted for inflation refer to MAX(inflation_adjusted_gross)LIMIT 5; DIVIDE(SUM(MAX(inflation_adjusted_gross LIMIT 5)), SUM(inflation_adjusted_gross)) as percentage;
SQL: SELECT SUM(CASE WHEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) > 1236035515 THEN CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL) ELSE 0 END) * 100 / SUM(CAST(REPLACE(trim(inflation_adjusted_gross, '$'), ',', '') AS REAL)) FROM movies_total_gross
Database: disney
Question: Among all Disney movies directed by Gary Trousdale, determine the percentage that earned over USD100m based on actual grossing.
Evidence: DIVIDE(COUNT(movie_title where director = 'Gary Trousdale' and total_gross > 100000000), COUNT(movie_title where director = 'Gary Trousdale')) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) > 100000000 THEN T1.movie_title ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_title) FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name WHERE T2.director = 'Gary Trousdale'
Database: legislator
Question: How many current legislators do not have an account on ballotpedia.org ?
Evidence: do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''
SQL: SELECT COUNT(*) FROM current WHERE ballotpedia_id = '' OR ballotpedia_id IS NULL
Database: legislator
Question: Please list the official full names of all the current legislators who do not have an account on C-SPAN's video website.
Evidence: legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''
SQL: SELECT official_full_name FROM current WHERE cspan_id IS NULL OR cspan_id = ''
Database: legislator
Question: How many current legislators were born after the year 1960?
Evidence: born after the year 1960 refers to birthday_bio > '1960-01-01'
SQL: SELECT COUNT(bioguide_id) FROM current WHERE birthday_bio >= '1961-01-01'
Database: legislator
Question: Among all the current female legislators, how many of them have not been registered in Federal Election Commission data?
Evidence: have not been registered refers to fec_id IS NULL; female refers to gender_bio = 'F'
SQL: SELECT COUNT(*) FROM current WHERE (fec_id IS NULL OR fec_id = '') AND gender_bio = 'F'
Database: legislator
Question: What is the google entity ID of current legislator Sherrod Brown?
Evidence: Sherrod Brown is an official_full_name
SQL: SELECT google_entity_id_id FROM current WHERE official_full_name = 'Sherrod Brown'
Database: legislator
Question: Which current legislator is older, Sherrod Brown or Maria Cantwell?
Evidence: older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name
SQL: SELECT official_full_name FROM current WHERE official_full_name = 'Sherrod Brown' OR official_full_name = 'Maria Cantwell' ORDER BY birthday_bio LIMIT 1
Database: legislator
Question: What is the username of the current official Facebook presence of current legislator Todd Young?
Evidence: Todd Young is an official_full_name; username of current official Facebook presences refers to facebook;
SQL: SELECT T1.facebook FROM `social-media` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.official_full_name = 'Todd Young'
Database: legislator
Question: How many current legislators do not have an account on instagram?
Evidence: do not have an account on instagram refers to instagram is null
SQL: SELECT COUNT(*) FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T1.instagram IS NULL
Database: legislator
Question: To which current legislator does twitter ID234128524 belong? Please give his or her full official name.
Evidence: full official name refers to official_full_name
SQL: SELECT T1.official_full_name FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T2.twitter_id = 234128524
Database: legislator
Question: Please list the current official YouTube usernames of all the current female legislators.
Evidence: official YouTube usernames refers to youtube; female refers to gender_bio = 'F'
SQL: SELECT T2.youtube FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.gender_bio = 'F'
Database: legislator
Question: What is the username of the current official Facebook presence of the oldest current legislator?
Evidence: username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)
SQL: SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id ORDER BY T1.birthday_bio LIMIT 1
Database: legislator
Question: Among the current legislators who do not have accounts on OpenSecrets.org., how many of them do not have instagram accounts either?
Evidence: do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null
SQL: SELECT SUM(CASE WHEN T1.instagram IS NULL THEN 1 ELSE 0 END) AS count FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.opensecrets_id IS NULL OR T2.opensecrets_id = ''
Database: legislator
Question: Current legislator Roger F. Wicker has not been a representative for how many terms?
Evidence: Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''
SQL: SELECT SUM(CASE WHEN T1.official_full_name = 'Roger F. Wicker' THEN 1 ELSE 0 END) AS count FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.district IS NULL OR T2.district = ''
Database: legislator
Question: For how many terms has current legislator Sherrod Brown served?
Evidence: Sherrod Brown is an official_full_name
SQL: SELECT COUNT(*) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Sherrod Brown'
Database: legislator
Question: Please list the official full names of all the current legislators who were once a senator during his or her terms.
Evidence: once a senator during term refers to state_rank IS NOT NULL
SQL: SELECT T2.official_full_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.state_rank IS NOT NULL
Database: legislator
Question: For which state did current legislator Sherrod Brown serve during his term that started on 1993/1/5?
Evidence: Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';
SQL: SELECT T1.state FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.start = '1993-01-05' AND T2.official_full_name = 'Sherrod Brown'
Database: legislator
Question: Among all the female current legislators, how many of them have served for more than 4 terms?
Evidence: female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)
SQL: SELECT COUNT(CID) FROM ( SELECT T1.bioguide_id AS CID FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F' GROUP BY T2.bioguide HAVING COUNT(T2.bioguide) > 4 )
Database: legislator
Question: Among the current legislators who have served for more than 6 terms, how many of them were born after 1960?
Evidence: served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'
SQL: SELECT COUNT(CID) FROM ( SELECT T1.bioguide_id AS CID FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.birthday_bio >= '1960-01-01' GROUP BY T2.bioguide HAVING COUNT(T2.bioguide) > 6 )
Database: legislator
Question: What is the average number of terms for a current female legislator?
Evidence: female refers to gender_bio = 'F'; calculation refers to DIVIDE(COUNT(bioguide WHERE gender_bio = 'F'), COUNT(bioguide_id))
SQL: SELECT CAST(COUNT(T2.bioguide) AS REAL) / COUNT(DISTINCT T1.bioguide_id) FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F'
Database: legislator
Question: Among all the current legislators whose religion is Roman Catholic, what is the percentage of the ones without an instagram account?
Evidence: religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)
SQL: SELECT CAST(SUM(CASE WHEN T1.instagram IS NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.religion_bio = 'Roman Catholic'
Database: legislator
Question: How many males were members of the current legislators?
Evidence: male refers to gender_bio = 'M'
SQL: SELECT COUNT(*) FROM current WHERE gender_bio = 'M'
Database: legislator
Question: How many current legislators chose Republican as their political party?
Evidence: chose Republican as their political party refers to party = 'Republican'
SQL: SELECT COUNT(*) FROM `current-terms` WHERE party = 'Republican'
Database: legislator
Question: How many legislators have an Instagram account?
Evidence: have an Instagram account refers to instagram is NOT null and instagram <>''
SQL: SELECT COUNT(*) FROM `social-media` WHERE instagram IS NOT NULL AND instagram <> ''
Database: legislator
Question: How many females were members of the past legislators?
Evidence: female refers to gender_bio = 'F'
SQL: SELECT COUNT(*) FROM historical WHERE gender_bio = 'F'
Database: legislator
Question: How many male legislators are Roman Catholic?
Evidence: male refers to gender_bio = 'M'; Roman Catholic is a religion_bio
SQL: SELECT COUNT(*) FROM current WHERE religion_bio = 'Roman Catholic' AND gender_bio = 'M'
Database: legislator
Question: What type of political party Sherrod Brown has in 2005?
Evidence: political party refers to party; Sherrod Brown is an official_full_name; official_full_name refers to first_name, last_name; 2005 refers to start = 2005
SQL: SELECT T1.party FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.first_name = 'Sherrod' AND T2.last_name = 'Brown' AND T1.start LIKE '%2005%'
Database: legislator
Question: List the full name of all the senior senators in year 2013.
Evidence: full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'
SQL: SELECT T2.official_full_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.state_rank = 'senior' AND T1.type = 'sen' AND T1.start LIKE '2013%'
Database: legislator
Question: What is the current official Youtube username of Chris Van Hollen?
Evidence: Youtube username refers to youtube; Chris Van Hollen is an official_full_name
SQL: SELECT T2.youtube FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Chris Van Hollen'
Database: legislator
Question: How many official social media does Mark Warner have?
Evidence: official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name
SQL: SELECT CASE WHEN T1.facebook IS NOT NULL THEN 1 END + CASE WHEN T1.instagram IS NOT NULL THEN 1 END + CASE WHEN T1.twitter IS NOT NULL THEN 1 END + CASE WHEN T1.youtube IS NOT NULL THEN 1 END AS COUNTSOCIAL FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T2.first_name = 'Mark' AND T2.last_name = 'Warner'
Database: legislator
Question: List the last name of all current legislators who live in California.
Evidence: California refers to state = 'CA'
SQL: SELECT T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state = 'CA' GROUP BY T1.last_name
Database: legislator
Question: List the full name of all current female senators.
Evidence: full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'
SQL: SELECT T2.first_name, T2.last_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.type = 'sen' AND T2.gender_bio = 'F' GROUP BY T2.ballotpedia_id
Database: legislator
Question: What is the numeric ID of Chris Van Hollen on GovTrack.us?
Evidence: Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack
SQL: SELECT T2.govtrack FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Chris Van Hollen'
Database: legislator
Question: What is the current official Twitter handle of Roger F. Wicker?
Evidence: Twitter handle refers to twitter; Roger F. Wicker is an official_full_name
SQL: SELECT T2.twitter FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Roger F. Wicker'
Database: legislator
Question: List the full name of all past legislators that chose Pro-Administration as their political party in year 1791.
Evidence: full name refers to official_full_name; chose Pro-Administration as their political party refers to party = 'Pro-Administration'; 1791 refers to start < = 1791 AND END > = 1791
SQL: SELECT T1.first_name, T1.last_name FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Pro-Administration' AND CAST(T2.start AS DATE) <= 1791 AND CAST(T2.END AS DATE) >= 1791
Database: legislator
Question: Provide the full name of all current female legislators that chose Republican as their political party.
Evidence: full name refers to official_full_name; official_full_name refers to first_name, last_name; female refers to gender_bio = 'F'; chose Republican as their political party refers to party = 'Republican'; current legislators refers to END > Date()
SQL: SELECT T1.first_name, T1.last_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Republican' AND T1.gender_bio = 'F' AND T2.END > DATE() GROUP BY T1.bioguide_id
Database: legislator
Question: What is the district number that Chris Van Hollen serving?
Evidence: Chris Van Hollen is an official_full_name
SQL: SELECT T2.district FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Chris Van Hollen' AND T2.district IS NOT NULL GROUP BY T2.district
Database: legislator
Question: How many times did Richard Durbin become a legislator in district 20?
Evidence: Richard Durbin is an official_full_name;  official_full_name refers to first_name, last_name; district 20 refers to district = 20
SQL: SELECT SUM(CASE WHEN T2.district = 20 THEN 1 ELSE 0 END) AS count FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Richard' AND T1.last_name = 'Durbin'
Database: legislator
Question: Calculate the average number of current male legislators who chose Democrat from 2000 until 2021.
Evidence: male refers to gender_bio = 'M'; legislators who chose Democrat refers to party = 'Democrat'; from 2000 until 2021 refers to start > = 2000 AND END < = 2021; calculation = DIVIDE(COUNT(bioguide_id), 22)
SQL: SELECT CAST(COUNT(T1.bioguide_id) AS REAL) / 22 FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'M' AND CAST(T2.start AS DATE) >= 2000 AND CAST(T2.END AS DATE) <= 2021 AND T2.party = 'Democrat'
Database: legislator
Question: Calculate the percentage of the total number of current female legislators and past female legislators. State which one has the highest value.
Evidence: female refers to gender_bio = 'F'; calculation = MULTIPLY(DIVIDE(COUNT(current.gender_bio = 'F' THEN current.bioguide_id)), (COUNT(historical.gender_bio = 'F' then historical.bioguide_id)), 1.0); the highest value refers to MAX(calculation)
SQL: SELECT CAST(COUNT(CASE WHEN current.gender_bio = 'F' THEN current.bioguide_id ELSE NULL END) AS REAL) * 100 / ( SELECT COUNT(CASE WHEN historical.gender_bio = 'F' THEN historical.bioguide_id ELSE NULL END) FROM historical ) FROM current
Database: legislator
Question: Give the YouTube ID of the channel 'RepWassermanSchultz.'
Evidence: RepWassermanSchultz refers to youtube
SQL: SELECT youtube_id FROM `social-media` WHERE youtube = 'RepWassermanSchultz'
Database: legislator
Question: What are the Facebook, Twitter and YouTube usernames of Adam Kinzinger?
Evidence: Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name
SQL: SELECT T2.facebook FROM current AS T1 INNER JOIN `social-media` AS T2 ON T2.bioguide = T1.bioguide_id WHERE T1.official_full_name = 'Adam Kinzinger'
Database: legislator
Question: Which party does Christopher Henderson Clark belong to?
Evidence: Christopher Henderson Clark is full name; full name refers to first_name, middle_name, last_name
SQL: SELECT T1.party FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T2.first_name OR T2.middle_name OR T2.last_name = 'ChristopherHendersonClark'
Database: legislator
Question: List the official full names of 10 legislators who have a YouTube account but no Instagram account.
Evidence: have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')
SQL: SELECT T2.official_full_name FROM `social-media` AS T1 INNER JOIN current AS T2 ON T1.bioguide = T2.bioguide_id WHERE T1.facebook IS NOT NULL AND (T1.instagram IS NULL OR T1.instagram = '') LIMIT 10
Database: legislator
Question: Give the official full names of legislators representing Virginia.
Evidence: Virginia refers to state = 'VA'
SQL: SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.state = 'VA' GROUP BY T1.official_full_name
Database: legislator
Question: Which historical legislators are members of the National Greenbacker party? Write their first and last names.
Evidence: members of the National Greenbacker party refers to party = 'National Greenbacker'; first and last names refers to first_name, last_name
SQL: SELECT T2.first_name, T2.last_name FROM `historical-terms` AS T1 INNER JOIN historical AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.party = 'National Greenbacker'