text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (ht VARCHAR, venue VARCHAR, score VARCHAR)
### Question:
What was the HT for the game at Zagreb, with a full-time score of 0-2?
### Answer:
SELECT ht FROM table_name_54 WHERE venue = "zagreb" AND score = "0-2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (kono INTEGER, bonthe INTEGER)
### Question:
What is the sum of the kono with a bonthe greater than 21,238?
### Answer:
SELECT SUM(kono) FROM table_name_38 WHERE bonthe > 21 OFFSET 238 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (week INTEGER, result VARCHAR)
### Question:
How many weeks have l 3-17 as the result?
### Answer:
SELECT SUM(week) FROM table_name_9 WHERE result = "l 3-17" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (round INTEGER, nationality VARCHAR)
### Question:
What is the highest round for the pick from Finland?
### Answer:
SELECT MAX(round) FROM table_name_55 WHERE nationality = "finland" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11900378_1 (doubles_champions VARCHAR, tournament VARCHAR)
### Question:
How many doubles champions were there for the Serbia f6 Futures tournament?
### Answer:
SELECT COUNT(doubles_champions) FROM table_11900378_1 WHERE tournament = "Serbia F6 Futures" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_272313_1 (vertical INTEGER, horizontal VARCHAR)
### Question:
What was the maximum vertical measurement if the horizon measurement is 640?
### Answer:
SELECT MAX(vertical) FROM table_272313_1 WHERE horizontal = 640 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24122653_2 (reward VARCHAR, eliminated VARCHAR)
### Question:
What is the reward for the elimination of Peterson?
### Answer:
SELECT reward FROM table_24122653_2 WHERE eliminated = "Peterson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Products (Product_ID VARCHAR, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Other_Item_Details VARCHAR, Product_ID VARCHAR)
### Question:
What are the order details of the products with price higher than 2000?
### Answer:
SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17901155_4 (viewers__millions_ VARCHAR, no_in_season VARCHAR)
### Question:
How many million viewers watched episode 6?
### Answer:
SELECT viewers__millions_ FROM table_17901155_4 WHERE no_in_season = 6 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE scientists (Id VARCHAR)
### Question:
Find the total number of scientists.
### Answer:
SELECT COUNT(*) FROM scientists |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_89 (year INTEGER, accolade VARCHAR, rank VARCHAR)
### Question:
Name the highest year with rank of 22 and accolade of singles of 1999
### Answer:
SELECT MAX(year) FROM table_name_89 WHERE accolade = "singles of 1999" AND rank = "22" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (original_name VARCHAR, country VARCHAR)
### Question:
Which film originated in France?
### Answer:
SELECT original_name FROM table_name_27 WHERE country = "france" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (round INTEGER, pick VARCHAR)
### Question:
In which round was there a pick of 4?
### Answer:
SELECT MAX(round) FROM table_name_66 WHERE pick = 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_8 (nationalist VARCHAR, undecided__no_answer VARCHAR)
### Question:
What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?
### Answer:
SELECT nationalist FROM table_name_8 WHERE undecided__no_answer = "29.2%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (title VARCHAR, track INTEGER)
### Question:
What is the title of the track after 11?
### Answer:
SELECT title FROM table_name_93 WHERE track > 11 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19930660_2 (marcus_guest VARCHAR, rufus_guest VARCHAR)
### Question:
Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?
### Answer:
SELECT marcus_guest FROM table_19930660_2 WHERE rufus_guest = "Rory McGrath" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27529608_21 (genre VARCHAR, age_s_ VARCHAR)
### Question:
What is the genre for the group with ages 29-30?
### Answer:
SELECT genre FROM table_27529608_21 WHERE age_s_ = "29-30" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)
### Question:
What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?
### Answer:
SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Other_Available_Features (feature_type_code VARCHAR, feature_name VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_name VARCHAR, feature_type_code VARCHAR)
### Question:
What is the feature type name of feature AirCon?
### Answer:
SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = "AirCon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_199666_1 (codename VARCHAR, centrino VARCHAR)
### Question:
What's the code name of the wireless LAN with Chief River Centrino?
### Answer:
SELECT codename FROM table_199666_1 WHERE centrino = "Chief River" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (wheel_arrangement VARCHAR, manufacturer VARCHAR, quantity_made VARCHAR)
### Question:
What is Wheel Arrangement, when Manufacturer is "Baldwin", and when Quantity Made is 12?
### Answer:
SELECT wheel_arrangement FROM table_name_52 WHERE manufacturer = "baldwin" AND quantity_made = "12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
### Question:
What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?
### Answer:
SELECT SUM(total) FROM table_name_27 WHERE bronze > 2 AND nation = "united states" AND gold > 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)
### Question:
Who belong to the institution "University of Oxford"? Show the first names and last names.
### Answer:
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12261806_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
### Question:
Name the total number of trofeo fast team of stage 16
### Answer:
SELECT COUNT(trofeo_fast_team) FROM table_12261806_2 WHERE stage = "16" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1302886_1 (others_number INTEGER, bush_percentage VARCHAR)
### Question:
What is the others# when bush% is 57.0%?
### Answer:
SELECT MAX(others_number) FROM table_1302886_1 WHERE bush_percentage = "57.0%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR)
### Question:
What's the season that had a lost of 9 with 72 games?
### Answer:
SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (visitor VARCHAR, home VARCHAR)
### Question:
Which visitor has a Los Angeles home?
### Answer:
SELECT visitor FROM table_name_20 WHERE home = "los angeles" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (track VARCHAR, state VARCHAR)
### Question:
What is the track in Washington state?
### Answer:
SELECT track FROM table_name_83 WHERE state = "washington" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18305523_2 (cover_date VARCHAR, story_title VARCHAR)
### Question:
How many cover dates does the story "Devastation Derby! (part 1)" have?
### Answer:
SELECT COUNT(cover_date) FROM table_18305523_2 WHERE story_title = "DEVASTATION DERBY! (Part 1)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19501664_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
### Question:
Name the original air date for 15.74 viewers
### Answer:
SELECT original_air_date FROM table_19501664_1 WHERE us_viewers__millions_ = "15.74" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (tournament VARCHAR, opponent_in_the_final VARCHAR)
### Question:
For what tournament was Blaž Kavčič the opponent in the final?
### Answer:
SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (position VARCHAR, name VARCHAR)
### Question:
What's Francis Harris' position?
### Answer:
SELECT position FROM table_name_83 WHERE name = "francis harris" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR)
### Question:
When Hamilton Academical is the Opponent, what is the total Attendance?
### Answer:
SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (outcome VARCHAR, surface VARCHAR, score VARCHAR)
### Question:
Which outcome has a Surface of clay and a Score of 4–6, 7–5, 2–6?
### Answer:
SELECT outcome FROM table_name_50 WHERE surface = "clay" AND score = "4–6, 7–5, 2–6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (dob VARCHAR, surname VARCHAR)
### Question:
When is mr. ryan's DOB?
### Answer:
SELECT dob FROM table_name_19 WHERE surname = "ryan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (year INTEGER, weight__kg_ VARCHAR)
### Question:
What is the sum total of all the years with a bell that weighed 857 kilograms?
### Answer:
SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = "857" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19722233_5 (blocks VARCHAR, player VARCHAR)
### Question:
how many times did debbie black block
### Answer:
SELECT blocks FROM table_19722233_5 WHERE player = "Debbie Black" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23294081_11 (_number INTEGER, performer_2 VARCHAR, us_viewers__millions_ VARCHAR)
### Question:
What's the number of the episode seen by 2.99 millions of people in the US, where performer 2 was Heather Anne Campbell?
### Answer:
SELECT MIN(_number) FROM table_23294081_11 WHERE performer_2 = "Heather Anne Campbell" AND us_viewers__millions_ = "2.99" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, engine VARCHAR)
### Question:
Who is the Constructor for driver Piercarlo Ghinzani and a Ford cosworth dfv 3.0 v8 engine?
### Answer:
SELECT constructor FROM table_name_42 WHERE driver = "piercarlo ghinzani" AND engine = "ford cosworth dfv 3.0 v8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR)
### Question:
Find the student ID and middle name for all the students with at most two enrollments.
### Answer:
SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (rowers VARCHAR, rank VARCHAR)
### Question:
When rank is 5, what is the rowers?
### Answer:
SELECT rowers FROM table_name_32 WHERE rank = 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341663_19 (first_elected VARCHAR, incumbent VARCHAR)
### Question:
What year was Jerry Huckaby first elected?
### Answer:
SELECT first_elected FROM table_1341663_19 WHERE incumbent = "Jerry Huckaby" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (rank INTEGER, lane VARCHAR)
### Question:
The swimmer in lane 7 has what as the smallest rank?
### Answer:
SELECT MIN(rank) FROM table_name_81 WHERE lane = 7 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (laps VARCHAR, fin_pos VARCHAR)
### Question:
How many laps did the car do that had a final position of 17?
### Answer:
SELECT laps FROM table_name_79 WHERE fin_pos = "17" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (rank INTEGER, total VARCHAR, bronze VARCHAR)
### Question:
Which Rank has a Total larger than 30, and a Bronze of 14?
### Answer:
SELECT AVG(rank) FROM table_name_61 WHERE total > 30 AND bronze = 14 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20693870_1 (others_percentage VARCHAR, mccain_percentage VARCHAR, mccain_number VARCHAR)
### Question:
What percentage was the others vote when McCain had 52.9% and less than 45205.0 voters?
### Answer:
SELECT others_percentage FROM table_20693870_1 WHERE mccain_percentage = "52.9%" AND mccain_number < 45205.0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (date VARCHAR, series VARCHAR)
### Question:
What Date had a Series of ATCC Round 6?
### Answer:
SELECT date FROM table_name_28 WHERE series = "atcc round 6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (owner VARCHAR, trainer VARCHAR)
### Question:
What Owner's Trainer is Todd A. Pletcher?
### Answer:
SELECT owner FROM table_name_64 WHERE trainer = "todd a. pletcher" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1342370_39 (candidates VARCHAR, district VARCHAR)
### Question:
who is the candidate in district south carolina 2?
### Answer:
SELECT candidates FROM table_1342370_39 WHERE district = "South Carolina 2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29087004_3 (written_by VARCHAR, directed_by VARCHAR, united_states_original_airdate VARCHAR)
### Question:
Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?
### Answer:
SELECT written_by FROM table_29087004_3 WHERE directed_by = "Greg Sullivan" AND united_states_original_airdate = "July 21, 2012" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### Question:
What was the earliest week the team played the chicago cardinals in front of less than 25,312?
### Answer:
SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR)
### Question:
What country did Raymond Floyd play for?
### Answer:
SELECT country FROM table_name_9 WHERE player = "raymond floyd" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (year INTEGER, date VARCHAR)
### Question:
What is the average year of the games with the date December 26?
### Answer:
SELECT AVG(year) FROM table_name_84 WHERE date = "december 26" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 VARCHAR)
### Question:
Which tournament has the highest number of cuts while also having 4 top 25 appearances?
### Answer:
SELECT MAX(cuts_made) FROM table_name_54 WHERE top_25 = 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (place VARCHAR, score VARCHAR)
### Question:
what is the place when the score is 68-72-77-74=291?
### Answer:
SELECT place FROM table_name_81 WHERE score = 68 - 72 - 77 - 74 = 291 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (nba_draft VARCHAR, player VARCHAR)
### Question:
What is the NBA draft result of Dwayne Washington?
### Answer:
SELECT nba_draft FROM table_name_56 WHERE player = "dwayne washington" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15290638_1 (group_c VARCHAR, group_e VARCHAR)
### Question:
Who is in group c when iowa is in group e?
### Answer:
SELECT group_c FROM table_15290638_1 WHERE group_e = "Iowa" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR, championship VARCHAR)
### Question:
What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl?
### Answer:
SELECT score_in_the_final FROM table_name_44 WHERE surface = "hard" AND championship = "washington, d.c. , u.s." AND opponent_in_the_final = "ivan lendl" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (points INTEGER, chassis VARCHAR)
### Question:
Give the most points that features jordan 194 in the Chassis column.
### Answer:
SELECT MAX(points) FROM table_name_64 WHERE chassis = "jordan 194" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (males_rank INTEGER, females___percentage_ VARCHAR, females_rank VARCHAR)
### Question:
Which Males Rank is the highest one that has Females (%) smaller than 40, and Females Rank smaller than 22?
### Answer:
SELECT MAX(males_rank) FROM table_name_93 WHERE females___percentage_ < 40 AND females_rank < 22 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR)
### Question:
What is the attendance in week 15?
### Answer:
SELECT attendance FROM table_name_25 WHERE week = "15" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (days_held VARCHAR, reign VARCHAR, wrestlers VARCHAR)
### Question:
What days held has 1 as the reign with eden black as the wrestlers?
### Answer:
SELECT days_held FROM table_name_2 WHERE reign = "1" AND wrestlers = "eden black" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_45 (athlete VARCHAR, wind VARCHAR)
### Question:
Who was the athlete with a wind of 1.8?
### Answer:
SELECT athlete FROM table_name_45 WHERE wind = "1.8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18733814_2 (winner VARCHAR, general_classification VARCHAR)
### Question:
When thomas löfkvist is the general classification who is the winner?
### Answer:
SELECT winner FROM table_18733814_2 WHERE general_classification = "Thomas Löfkvist" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (l1_cache VARCHAR, fsb_speed VARCHAR, clock_speed VARCHAR)
### Question:
Which L1 Cache has an FSB speed of 800mhz and a clock speed of 1.2ghz?
### Answer:
SELECT l1_cache FROM table_name_35 WHERE fsb_speed = "800mhz" AND clock_speed = "1.2ghz" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (artist VARCHAR, record_label VARCHAR)
### Question:
Which Artist has a Record label of vertigo?
### Answer:
SELECT artist FROM table_name_86 WHERE record_label = "vertigo" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (played INTEGER, drawn VARCHAR, position VARCHAR)
### Question:
What is the greatest played with a drawn less than 1 and a position of less than 1?
### Answer:
SELECT MAX(played) FROM table_name_99 WHERE drawn < 1 AND position < 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (loss VARCHAR, attendance VARCHAR)
### Question:
What was the loss of the game attended by 41,212?
### Answer:
SELECT loss FROM table_name_50 WHERE attendance = "41,212" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR)
### Question:
What day is south melbourne the away side?
### Answer:
SELECT date FROM table_name_21 WHERE away_team = "south melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)
### Question:
What is the highest rank with the notes of sa/b, and a time of 6:39.07?
### Answer:
SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:39.07" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1067441_1 (province VARCHAR, density VARCHAR)
### Question:
Which province has a density of 971.4?
### Answer:
SELECT province FROM table_1067441_1 WHERE density = "971.4" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (club VARCHAR, sport VARCHAR, league VARCHAR)
### Question:
Which club plays soccer in the nwsl?
### Answer:
SELECT club FROM table_name_61 WHERE sport = "soccer" AND league = "nwsl" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (year INTEGER, entrant VARCHAR)
### Question:
How many years has Sasol Jordan Yamaha as an Entrant?
### Answer:
SELECT AVG(year) FROM table_name_79 WHERE entrant = "sasol jordan yamaha" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_256286_13 (no_votes INTEGER)
### Question:
What is the lowest overall amount of no votes?
### Answer:
SELECT MIN(no_votes) FROM table_256286_13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR)
### Question:
what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?
### Answer:
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21422977_2 (ministers VARCHAR, cabinet__nickname_ VARCHAR)
### Question:
How many ministers are there when the cabinet (nickname) is Steingrímur Hermannsson III?
### Answer:
SELECT ministers FROM table_21422977_2 WHERE cabinet__nickname_ = "Steingrímur Hermannsson III" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24291077_4 (sydney VARCHAR, melbourne VARCHAR)
### Question:
How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?
### Answer:
SELECT sydney FROM table_24291077_4 WHERE melbourne = 334000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (visiting_team VARCHAR, date VARCHAR)
### Question:
Who was the visiting team that played on September 15?
### Answer:
SELECT visiting_team FROM table_name_41 WHERE date = "september 15" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR)
### Question:
When was the attendance 1,034?
### Answer:
SELECT MIN(date) FROM table_name_51 WHERE attendance = "1,034" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_13 (games VARCHAR, points VARCHAR, drawn VARCHAR)
### Question:
How many games have more than 10 points and more than 2 draws?
### Answer:
SELECT COUNT(games) FROM table_name_13 WHERE points = 10 AND drawn > 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (name VARCHAR, matches VARCHAR, rank VARCHAR, goals VARCHAR)
### Question:
Who had a rank larger than 7, less than 305 goals, and 418 matches?
### Answer:
SELECT name FROM table_name_36 WHERE rank > 7 AND goals < 305 AND matches = "418" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15926991_1 (weight__kg_ VARCHAR, jockey VARCHAR)
### Question:
What is the entry for weight in kilograms of jockey D. Nikolic?
### Answer:
SELECT weight__kg_ FROM table_15926991_1 WHERE jockey = "D. Nikolic" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (scottish_cup INTEGER, position VARCHAR, league_cup VARCHAR, total VARCHAR)
### Question:
What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?
### Answer:
SELECT SUM(scottish_cup) FROM table_name_47 WHERE league_cup < 2 AND total > 6 AND position = "forward" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2849652_2 (sport VARCHAR)
### Question:
How many first tournaments are associated with bowling?
### Answer:
SELECT COUNT(1 AS st_tournament) FROM table_2849652_2 WHERE sport = "Bowling" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15829930_5 (matches INTEGER, year VARCHAR)
### Question:
Name the least matches for year 2008
### Answer:
SELECT MIN(matches) FROM table_15829930_5 WHERE year = 2008 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (chipset VARCHAR, graphics VARCHAR, model VARCHAR)
### Question:
What type of chipset is in the Precision t3400 model with the PCI Express graphics?
### Answer:
SELECT chipset FROM table_name_97 WHERE graphics = "pci express" AND model = "precision t3400" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, gold VARCHAR)
### Question:
What is the total medals for nation with more than 0 silvers and more than 0 golds?
### Answer:
SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR)
### Question:
Player of corey pavin, and a To par larger than 5 has what average total?
### Answer:
SELECT AVG(total) FROM table_name_41 WHERE player = "corey pavin" AND to_par > 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (bronze INTEGER, total VARCHAR, silver VARCHAR)
### Question:
What is the average Bronze, when Total is 4, and when Silver is less than 2?
### Answer:
SELECT AVG(bronze) FROM table_name_36 WHERE total = 4 AND silver < 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (the_american VARCHAR, total_games VARCHAR, years VARCHAR, tied VARCHAR)
### Question:
What is the American locations with less than 114 years and more than 1 tied with more than 1022 total games?
### Answer:
SELECT the_american FROM table_name_36 WHERE years < 114 AND tied > 1 AND total_games > 1022 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE MODEL_LIST (Maker VARCHAR); CREATE TABLE CAR_MAKERS (FullName VARCHAR, Id VARCHAR)
### Question:
Which makers designed more than 3 car models? List full name and the id.
### Answer:
SELECT T1.FullName, T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) > 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR, total VARCHAR)
### Question:
What Nation has a Gold entry that is greater than 0, a Total that is greater than 2, a Silver entry that is larger than 1, and 0 Bronze?
### Answer:
SELECT nation FROM table_name_28 WHERE gold > 0 AND total > 2 AND bronze = 0 AND silver > 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (Id VARCHAR)
### Question:
What is the 2001 statistic for the product that had 2,360,000 tonnes in 2002?
### Answer:
SELECT 2001 FROM table_name_91 WHERE 2002 = "2,360,000 tonnes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (outcome VARCHAR, tournament VARCHAR)
### Question:
What was the outcome of the Tournament in Buenos Aires?
### Answer:
SELECT outcome FROM table_name_30 WHERE tournament = "buenos aires" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE battle (RESULT VARCHAR)
### Question:
How many different results are there for the battles?
### Answer:
SELECT COUNT(DISTINCT RESULT) FROM battle |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_67 (enrolment INTEGER, founded INTEGER)
### Question:
What is the low enrolment for schools founded after 1995?
### Answer:
SELECT MIN(enrolment) FROM table_name_67 WHERE founded > 1995 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE death (killed INTEGER)
### Question:
What is maximum and minimum death toll caused each time?
### Answer:
SELECT MAX(killed), MIN(killed) FROM death |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (years_active VARCHAR, titles VARCHAR)
### Question:
What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
### Answer:
SELECT AVG(2 AS nd_pl) FROM table_name_16 WHERE years_active = "2000" AND titles > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE university (affiliation VARCHAR, Enrollment INTEGER, founded INTEGER)
### Question:
Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.
### Answer:
SELECT SUM(Enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (location VARCHAR, school VARCHAR)
### Question:
Where is the lacrosse school located?
### Answer:
SELECT location FROM table_name_98 WHERE school = "lacrosse" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.