question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Find the distinct last names of all the students who have president votes and whose advisor is 8741.
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741"
What is the Korean dialect with a jeolla RR Romaja?
CREATE TABLE table_name_18 (korean_dialect VARCHAR, rr_romaja VARCHAR)
SELECT korean_dialect FROM table_name_18 WHERE rr_romaja = "jeolla"
What was the attendance at Round 9?
CREATE TABLE table_name_59 (crowd VARCHAR, round VARCHAR)
SELECT COUNT(crowd) FROM table_name_59 WHERE round = "round 9"
With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number?
CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR)
SELECT SUM(high_estimate) FROM table_name_51 WHERE type = "mass suicide" AND location = "france" AND low_estimate > 16
what's the record on july 10?
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_65 WHERE date = "july 10"
What is the main span feet from opening year of 1936 in the United States with a rank greater than 47 and 421 main span metres?
CREATE TABLE table_name_43 (main_span_feet VARCHAR, main_span_metres VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)
SELECT main_span_feet FROM table_name_43 WHERE year_opened = 1936 AND country = "united states" AND rank > 47 AND main_span_metres = "421"
What is the highest earnings of a player with more than 19 wins?
CREATE TABLE table_name_16 (earnings___ INTEGER, wins INTEGER)
SELECT MAX(earnings___) AS $__ FROM table_name_16 WHERE wins > 19
What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957
CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957
What was the Runner-up with Ohio as the National Champion in Tucson, AZ?
CREATE TABLE table_name_53 (runner_up VARCHAR, national_champion VARCHAR, location VARCHAR)
SELECT runner_up FROM table_name_53 WHERE national_champion = "ohio" AND location = "tucson, az"
How many people attended the Scottish Cup on 29.02.2000?
CREATE TABLE table_name_60 (attendance VARCHAR, competition VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_60 WHERE competition = "scottish cup" AND date = "29.02.2000"
On what date the footscray's away game?
CREATE TABLE table_name_81 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_81 WHERE away_team = "footscray"
What is the total pick number of player curt bennett from canada with a draft before 1976 and a round less than 2?
CREATE TABLE table_name_32 (pick VARCHAR, round VARCHAR, player VARCHAR, nationality VARCHAR, draft VARCHAR)
SELECT COUNT(pick) FROM table_name_32 WHERE nationality = "canada" AND draft < 1976 AND player = "curt bennett" AND round < 2
Which races have 137 points?
CREATE TABLE table_25318033_1 (races VARCHAR, points VARCHAR)
SELECT races FROM table_25318033_1 WHERE points = "137"
Which NFL team has a player that came from a college in Washington?
CREATE TABLE table_name_33 (nfl_team VARCHAR, college VARCHAR)
SELECT nfl_team FROM table_name_33 WHERE college = "washington"
Who is the visitor on december 3?
CREATE TABLE table_name_66 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_66 WHERE date = "december 3"
What is the highest Number of Bearers 2008, when Surname is Hansen, and when Rank is less than 1?
CREATE TABLE table_name_32 (number_of_bearers_2008 INTEGER, surname VARCHAR, rank VARCHAR)
SELECT MAX(number_of_bearers_2008) FROM table_name_32 WHERE surname = "hansen" AND rank < 1
What is the dominate religion in the location with a population of 4831?
CREATE TABLE table_2562572_12 (dominant_religion__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_12 WHERE population__2011_ = 4831
What are the names of representatives with more than 10000 votes in election?
CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE election (Representative_ID VARCHAR)
SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE Votes > 10000
What was the score of the home team of carlton?
CREATE TABLE table_name_60 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_60 WHERE home_team = "carlton"
In what movie did John Wayne play the role of Chris Morrell?
CREATE TABLE table_name_54 (title VARCHAR, role VARCHAR)
SELECT title FROM table_name_54 WHERE role = "chris morrell"
Who scored more than 72?
CREATE TABLE table_name_28 (player VARCHAR, score INTEGER)
SELECT player FROM table_name_28 WHERE score > 72
What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew?
CREATE TABLE table_name_56 (no_6 VARCHAR, no_10 VARCHAR, no_8 VARCHAR)
SELECT no_6 FROM table_name_56 WHERE no_10 = "joshua" AND no_8 = "andrew"
What is the average rank for players with under 205 matches and under 100 goals?
CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR, goals VARCHAR)
SELECT AVG(rank) FROM table_name_92 WHERE matches < 205 AND goals < 100
Tell me the average silver for total more than 1 with bronze of 2 for france and gold more than 0
CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT AVG(silver) FROM table_name_62 WHERE total > 1 AND bronze = 2 AND nation = "france" AND gold > 0
Opponent of edmonton oilers, and a Game of 3 is what series?
CREATE TABLE table_name_95 (series VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT series FROM table_name_95 WHERE opponent = "edmonton oilers" AND game = 3
What team did Alireza mansourian leave?
CREATE TABLE table_22297198_3 (team VARCHAR, outgoing_manager VARCHAR)
SELECT team FROM table_22297198_3 WHERE outgoing_manager = "Alireza Mansourian"
Who was the shooter for the WC Beijing event?
CREATE TABLE table_name_75 (shooter VARCHAR, event VARCHAR)
SELECT shooter FROM table_name_75 WHERE event = "wc beijing"
What's the maximal L3 cache for any of the models given?
CREATE TABLE table_269920_3 (l2_cache__mb_ INTEGER)
SELECT MAX(l2_cache__mb_) FROM table_269920_3
How many type catagories are listed when the percentage of yes is 68.91%?
CREATE TABLE table_256286_61 (type VARCHAR, _percentage_yes VARCHAR)
SELECT COUNT(type) FROM table_256286_61 WHERE _percentage_yes = "68.91%"
What are the years available at Bayview School, which has state authority and a roll number larger than 333?
CREATE TABLE table_name_58 (years VARCHAR, name VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT years FROM table_name_58 WHERE authority = "state" AND roll > 333 AND name = "bayview school"
What is the Game held on february 9?
CREATE TABLE table_name_17 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_17 WHERE date = "february 9"
What is the score when the attendance shows TBC, and Sidley United was the opponent?
CREATE TABLE table_name_81 (score VARCHAR, attendance VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_81 WHERE attendance = "tbc" AND opponent = "sidley united"
What is the average change to have a land area of 546.74 and a population density greater than 0.5?
CREATE TABLE table_name_51 (change___percentage_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)
SELECT AVG(change___percentage_) FROM table_name_51 WHERE land_area__km²_ = 546.74 AND population_density__per_km²_ > 0.5
Who wrote episode that had 1.97 million u.s. viewers?
CREATE TABLE table_27892955_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_27892955_1 WHERE us_viewers__million_ = "1.97"
What is the distance of the Mooresbridge Stakes race?
CREATE TABLE table_24850630_4 (distance VARCHAR, race VARCHAR)
SELECT distance FROM table_24850630_4 WHERE race = "Mooresbridge Stakes"
what is the title when the writer(s) is jack turley?
CREATE TABLE table_21146729_6 (title VARCHAR, writer_s_ VARCHAR)
SELECT title FROM table_21146729_6 WHERE writer_s_ = "Jack Turley"
tell the mean of the times competition for the 7 jigs
CREATE TABLE table_1354805_6 (rank_by_average VARCHAR, number_of_dances VARCHAR)
SELECT rank_by_average FROM table_1354805_6 WHERE number_of_dances = 7
what is the overall record when the club is dallas burn?
CREATE TABLE table_1246208_5 (overall_record VARCHAR, club VARCHAR)
SELECT overall_record FROM table_1246208_5 WHERE club = "Dallas Burn"
At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)?
CREATE TABLE table_name_86 (total_capacity__mwe_ INTEGER, power_plant VARCHAR)
SELECT SUM(total_capacity__mwe_) FROM table_name_86 WHERE power_plant = "ramakkalmedu"
Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005
CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR)
SELECT model FROM table_name_68 WHERE fuel_or_propulsion = "diesel" AND manufacturer = "orion" AND year = 2005
what's the minimum tasmania value
CREATE TABLE table_1057262_2 (tasmania INTEGER)
SELECT MIN(tasmania) FROM table_1057262_2
Which slope length has a type of surface lift, and an elevation groundstation smaller than 1974, and a construction year(s) of 1971, and a Name or route of alpmatten 1?
CREATE TABLE table_name_43 (slope_length VARCHAR, name_or_route VARCHAR, construction_year_s_ VARCHAR, type VARCHAR, elevation_groundstation VARCHAR)
SELECT slope_length FROM table_name_43 WHERE type = "surface lift" AND elevation_groundstation < 1974 AND construction_year_s_ = "1971" AND name_or_route = "alpmatten 1"
What is the season # for the episode with air date february 2, 1970?
CREATE TABLE table_25800134_14 (season__number INTEGER, airdate VARCHAR)
SELECT MAX(season__number) FROM table_25800134_14 WHERE airdate = "February 2, 1970"
What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981?
CREATE TABLE table_name_15 (format VARCHAR, label VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT format FROM table_name_15 WHERE catalog = "3645" AND date > 1981 AND label = "luaka bop"
What team had a qual 1 of 59.895?
CREATE TABLE table_name_72 (team VARCHAR, qual_1 VARCHAR)
SELECT team FROM table_name_72 WHERE qual_1 = "59.895"
What's the highest turnout when carlton was playing as the away team?
CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "carlton"
What is the average game for March 8 with less than 84 points?
CREATE TABLE table_name_23 (game INTEGER, points VARCHAR, march VARCHAR)
SELECT AVG(game) FROM table_name_23 WHERE points < 84 AND march = 8
how many times is the name matt targett and the lane higher than 7?
CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, lane VARCHAR)
SELECT COUNT(time) FROM table_name_44 WHERE name = "matt targett" AND lane > 7
Which Winner has a Runner-up of larne, and a Season of 2003–04?
CREATE TABLE table_name_13 (winner VARCHAR, runner_up VARCHAR, season VARCHAR)
SELECT winner FROM table_name_13 WHERE runner_up = "larne" AND season = "2003–04"
List the course name of courses sorted by credits.
CREATE TABLE COURSE (CName VARCHAR, Credits VARCHAR)
SELECT CName FROM COURSE ORDER BY Credits
What is the current club of the Forward who was born after 1983 and who has a height under 2.12?
CREATE TABLE table_name_36 (current_club VARCHAR, position VARCHAR, year_born VARCHAR, height VARCHAR)
SELECT current_club FROM table_name_36 WHERE year_born > 1983 AND height < 2.12 AND position = "forward"
When was the game with a record of 54-69?
CREATE TABLE table_name_28 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_28 WHERE record = "54-69"
Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.
CREATE TABLE Movie (mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars VARCHAR)
SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year
Name the opponents for 24 july 2011
CREATE TABLE table_name_45 (opponents VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_45 WHERE date = "24 july 2011"
When did Riot Games release their 3D MOBA game?
CREATE TABLE table_name_2 (release_date VARCHAR, developer_s_ VARCHAR, type VARCHAR, genre VARCHAR)
SELECT release_date FROM table_name_2 WHERE type = "3d" AND genre = "moba" AND developer_s_ = "riot games"
What position is Jeff Brown?
CREATE TABLE table_name_74 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_74 WHERE player = "jeff brown"
In Pinal County, Arizona, when there's a capacity of over 5 metric tons, and the rank is under 14, what's the mine called?
CREATE TABLE table_name_67 (mine VARCHAR, county_and_state VARCHAR, rank VARCHAR, capacity__thousands_of_metric_tons_ VARCHAR)
SELECT mine FROM table_name_67 WHERE rank < 14 AND capacity__thousands_of_metric_tons_ > 5 AND county_and_state = "pinal county, arizona"
How many games played for teams with 277 points?
CREATE TABLE table_15467476_3 (played VARCHAR, points_for VARCHAR)
SELECT played FROM table_15467476_3 WHERE points_for = "277"
What is the English title for 1984 from Sweden?
CREATE TABLE table_name_68 (english_title VARCHAR, year VARCHAR, country VARCHAR)
SELECT english_title FROM table_name_68 WHERE year = 1984 AND country = "sweden"
what is the competition played in budva against italy?
CREATE TABLE table_name_56 (competition VARCHAR, town VARCHAR, opponent VARCHAR)
SELECT competition FROM table_name_56 WHERE town = "budva" AND opponent = "italy"
If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time?
CREATE TABLE table_1557752_1 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT prothrombin_time FROM table_1557752_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged"
What is the largest value for goals in rank over 3 with goal ration of 0.54?
CREATE TABLE table_name_53 (goals INTEGER, rank VARCHAR, goal_ratio VARCHAR)
SELECT MAX(goals) FROM table_name_53 WHERE rank > 3 AND goal_ratio = 0.54
What did the Victoria park home team score?
CREATE TABLE table_name_1 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_1 WHERE venue = "victoria park"
What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13?
CREATE TABLE table_name_67 (location VARCHAR, league_division VARCHAR, position_in_2012_13 VARCHAR)
SELECT location FROM table_name_67 WHERE league_division = "second division" AND position_in_2012_13 = "4th, third division (promoted)"
What catalog uses the stereo compact cassette format?
CREATE TABLE table_name_10 (catalog VARCHAR, format VARCHAR)
SELECT catalog FROM table_name_10 WHERE format = "stereo compact cassette"
What is the number of weight values associated with 340 blocks and more than 353 spikes?
CREATE TABLE table_name_7 (weight VARCHAR, block VARCHAR, spike VARCHAR)
SELECT COUNT(weight) FROM table_name_7 WHERE block = 340 AND spike > 353
What is the lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?
CREATE TABLE table_name_95 (all_time INTEGER, amateur_era VARCHAR, first_title VARCHAR, last_title VARCHAR)
SELECT MIN(all_time) FROM table_name_95 WHERE first_title < 1974 AND last_title = 1933 AND amateur_era > 2
What is the car # of the Chevrolet that complete 363 laps?
CREATE TABLE table_name_68 (car__number VARCHAR, make VARCHAR, laps VARCHAR)
SELECT COUNT(car__number) FROM table_name_68 WHERE make = "chevrolet" AND laps = 363
How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131?
CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT COUNT(liberal_candidates) FROM table_name_94 WHERE liberal_leader = "pearson" AND _percentage_of_popular_vote = "40.2%" AND seats_won < 131
Tell me the average Laps for grid larger than 22
CREATE TABLE table_name_39 (laps INTEGER, grid INTEGER)
SELECT AVG(laps) FROM table_name_39 WHERE grid > 22
What is the minimum number of starts for the players having a best finish of T18?
CREATE TABLE table_24747844_2 (starts INTEGER, best_finish VARCHAR)
SELECT MIN(starts) FROM table_24747844_2 WHERE best_finish = "T18"
What was the tie number when Bournemouth was the home team?
CREATE TABLE table_name_79 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_79 WHERE home_team = "bournemouth"
Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )?
CREATE TABLE table_20170644_1 (player VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_20170644_1 WHERE cfl_team = "Hamilton Tiger-Cats (via BC via Saskatchewan )"
Which Run 2 has a Run 1 of 1:30.03?
CREATE TABLE table_name_29 (run_2 VARCHAR, run_1 VARCHAR)
SELECT run_2 FROM table_name_29 WHERE run_1 = "1:30.03"
In the district called Tennessee 6, how many in total of first elected are there?
CREATE TABLE table_1341577_43 (first_elected VARCHAR, district VARCHAR)
SELECT COUNT(first_elected) FROM table_1341577_43 WHERE district = "Tennessee 6"
Which Nationality has a Fate of sunk, and a Name of alderamin?
CREATE TABLE table_name_67 (nationality VARCHAR, fate VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_67 WHERE fate = "sunk" AND name = "alderamin"
What is the average number of wins with less than 10 goals?
CREATE TABLE table_name_76 (wins INTEGER, goals_against INTEGER)
SELECT AVG(wins) FROM table_name_76 WHERE goals_against < 10
What was the location that had an accident by the F-27-600RF aircraft with tail number 6O-SAZ?
CREATE TABLE table_name_42 (location VARCHAR, aircraft VARCHAR, tail_number VARCHAR)
SELECT location FROM table_name_42 WHERE aircraft = "f-27-600rf" AND tail_number = "6o-saz"
Name the venue when the away team was richmond
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_6 WHERE away_team = "richmond"
How many original air dates were there for episode 22?
CREATE TABLE table_24798489_2 (original_airdate VARCHAR, episode_number VARCHAR)
SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 22
What is the date opened if thedistrict ID is 11901?
CREATE TABLE table_22665117_1 (date_opened VARCHAR, dist_id VARCHAR)
SELECT date_opened FROM table_22665117_1 WHERE dist_id = 11901
What week had kickoff time at 6:00 p.m.?
CREATE TABLE table_24786958_2 (week INTEGER, kickoff VARCHAR)
SELECT MIN(week) FROM table_24786958_2 WHERE kickoff = "6:00 p.m."
What is the latest season number that Eric Tuchman directed?
CREATE TABLE table_2219961_2 (season__number INTEGER, director VARCHAR)
SELECT MAX(season__number) FROM table_2219961_2 WHERE director = "Eric Tuchman"
When 1008/1009 is the production code how many directors are there?
CREATE TABLE table_1854728_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT COUNT(directed_by) FROM table_1854728_2 WHERE production_code = "1008/1009"
What is the fastest lap for a season smaller than 1979?
CREATE TABLE table_name_99 (fastest_laps VARCHAR, season INTEGER)
SELECT fastest_laps FROM table_name_99 WHERE season < 1979
In what rounds was the featured driver Tomonobu Fujii with a Tyre of Y?
CREATE TABLE table_name_59 (rounds VARCHAR, tyre VARCHAR, drivers VARCHAR)
SELECT rounds FROM table_name_59 WHERE tyre = "y" AND drivers = "tomonobu fujii"
Name the total number of class aaa for 2006-07
CREATE TABLE table_14630796_1 (class_aAA VARCHAR, school_year VARCHAR)
SELECT COUNT(class_aAA) FROM table_14630796_1 WHERE school_year = "2006-07"
What is the finish with 200 laps and a start of 3?
CREATE TABLE table_name_91 (finish VARCHAR, laps VARCHAR, start VARCHAR)
SELECT finish FROM table_name_91 WHERE laps = 200 AND start = "3"
what are all the u15 3rd iv with u15 4th iv being bbc
CREATE TABLE table_11318462_5 (u15_3rd_iv VARCHAR, u15_4th_iv VARCHAR)
SELECT u15_3rd_iv FROM table_11318462_5 WHERE u15_4th_iv = "BBC"
Where was the game where the senators scored 80 points?
CREATE TABLE table_name_35 (location VARCHAR, points VARCHAR)
SELECT location FROM table_name_35 WHERE points = 80
what's the bleeding time with platelet count being decreased and prothrombin time being prolonged
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
SELECT bleeding_time FROM table_14006_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Prolonged"
how many times was the incumbent is john b. yates?
CREATE TABLE table_2668347_14 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_2668347_14 WHERE incumbent = "John B. Yates"
What director worked with Al Mackay as writer?
CREATE TABLE table_name_61 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT director_s_ FROM table_name_61 WHERE writer_s_ = "al mackay"
What is the Tournament in the Year of 1986?
CREATE TABLE table_name_21 (tournament VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_21 WHERE year = "1986"
Name the scientific name for veiled chameleon
CREATE TABLE table_175442_1 (scientific_name VARCHAR, common_name VARCHAR)
SELECT scientific_name FROM table_175442_1 WHERE common_name = "Veiled chameleon"
What constructor has a 12 grid?
CREATE TABLE table_name_61 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_61 WHERE grid = 12
Which silver has a Gold smaller than 12, a Rank smaller than 5, and a Bronze of 5?
CREATE TABLE table_name_24 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT silver FROM table_name_24 WHERE gold < 12 AND rank < 5 AND bronze = 5
What is the location when KO is the method, the result is a win, and the record is 2-0?
CREATE TABLE table_name_66 (location VARCHAR, record VARCHAR, method VARCHAR, result VARCHAR)
SELECT location FROM table_name_66 WHERE method = "ko" AND result = "win" AND record = "2-0"
Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.
CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)
SELECT title, film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING COUNT(*) < 3
Who's the incumbent of district Wisconsin 5?
CREATE TABLE table_1341453_51 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341453_51 WHERE district = "Wisconsin 5"