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_63 (location VARCHAR, score VARCHAR)
### Question:
What is the Location, when the Score is 35-31?
### Answer:
SELECT location FROM table_name_63 WHERE score = "35-31" |
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_59 (points INTEGER, home VARCHAR, game__number VARCHAR)
### Question:
What is the points where Toronto was the home team and the game number was larger than 63?
### Answer:
SELECT MAX(points) FROM table_name_59 WHERE home = "toronto" AND game__number > 63 |
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 nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)
### Question:
Show the names of festivals that have nominated artworks of type "Program Talent Show".
### Answer:
SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = "Program Talent Show" |
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_59 (to_par VARCHAR, country VARCHAR, player VARCHAR)
### Question:
What is the to par of player notah begay iii from the United States?
### Answer:
SELECT to_par FROM table_name_59 WHERE country = "united states" AND player = "notah begay 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_21220720_1 (finals_apps INTEGER)
### Question:
Name the mosst finals apps
### Answer:
SELECT MAX(finals_apps) FROM table_21220720_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_3 (crowd INTEGER, home_team VARCHAR)
### Question:
What is the largest Crowd number for the Home team of North Melbourne?
### Answer:
SELECT MAX(crowd) FROM table_name_3 WHERE home_team = "north 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_16751596_12 (republican VARCHAR, dates_administered VARCHAR)
### Question:
On November 14, 2007, how many different Republican: Jeff Sessions are there?
### Answer:
SELECT COUNT(republican) AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "November 14, 2007" |
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 (name_of_ship VARCHAR, date VARCHAR)
### Question:
What is the Name of the Ship attacked on 20February1942?
### Answer:
SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942" |
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_63 (lost VARCHAR, conv VARCHAR, span VARCHAR)
### Question:
What is the lost for span 2006- when conv is 0?
### Answer:
SELECT lost FROM table_name_63 WHERE conv = "0" AND span = "2006-" |
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_62 (Id VARCHAR)
### Question:
What is the 2011 value that has a 2r in 2008 and a 4r in 2012?
### Answer:
SELECT 2011 FROM table_name_62 WHERE 2008 = "2r" AND 2012 = "4r" |
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_96 (total INTEGER, rank VARCHAR, gold VARCHAR, bronze VARCHAR)
### Question:
What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?
### Answer:
SELECT MAX(total) FROM table_name_96 WHERE gold < 15 AND bronze < 5 AND rank > 10 |
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 TRACK (UnitPrice VARCHAR)
### Question:
What are the distinct unit prices of all tracks?
### Answer:
SELECT DISTINCT (UnitPrice) FROM TRACK |
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_1909647_2 (starts INTEGER, avg_finish VARCHAR)
### Question:
What's the number of starts in the year with 19.3 average finish?
### Answer:
SELECT MIN(starts) FROM table_1909647_2 WHERE avg_finish = "19.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_81 (attendance INTEGER, home VARCHAR)
### Question:
What is the average attendance San Jose home games?
### Answer:
SELECT AVG(attendance) FROM table_name_81 WHERE home = "san jose" |
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_77 (driver VARCHAR, points VARCHAR)
### Question:
Which driver had 35+3 points?
### Answer:
SELECT driver FROM table_name_77 WHERE points = "35+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_2008069_2 (pinyin VARCHAR, uyghur___yenɡi_yezik̢__ VARCHAR)
### Question:
Name the pinyin for kɵkyar k̡irƣiz yezisi
### Answer:
SELECT pinyin FROM table_2008069_2 WHERE uyghur___yenɡi_yezik̢__ = "Kɵkyar K̡irƣiz yezisi" |
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 (score_final INTEGER, rank_final VARCHAR, year VARCHAR)
### Question:
Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009?
### Answer:
SELECT MIN(score_final) FROM table_name_26 WHERE rank_final = 7 AND year > 2009 |
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 (number_ VARCHAR, _name VARCHAR, description VARCHAR)
### Question:
What's the number & name for a description of lms fowler class 3f 0-6-0t?
### Answer:
SELECT number_ & _name FROM table_name_10 WHERE description = "lms fowler class 3f 0-6-0t" |
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 (decile INTEGER, authority VARCHAR, name VARCHAR)
### Question:
What is the average decile of Ruapehu college, which has a state authority?
### Answer:
SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college" |
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 (away_captain VARCHAR, date VARCHAR)
### Question:
Which Away captain has a Date of 26,27,28,29 december 1998?
### Answer:
SELECT away_captain FROM table_name_12 WHERE date = "26,27,28,29 december 1998" |
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 (erp_w INTEGER, facility_id VARCHAR)
### Question:
What is the lowest ERP W of the 67829 Facility ID?
### Answer:
SELECT MIN(erp_w) FROM table_name_54 WHERE facility_id = 67829 |
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_1974482_1 (institution VARCHAR, nickname VARCHAR)
### Question:
Name the institution for yellowjackets
### Answer:
SELECT institution FROM table_1974482_1 WHERE nickname = "Yellowjackets" |
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_24887326_6 (tie_no VARCHAR, home_team VARCHAR)
### Question:
What tie has Orient as the home team?
### Answer:
SELECT tie_no FROM table_24887326_6 WHERE home_team = "Orient" |
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 (city_of_license VARCHAR, frequency VARCHAR)
### Question:
What is City of License, when Frequency is 101.1?
### Answer:
SELECT city_of_license FROM table_name_20 WHERE frequency = "101.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_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR)
### Question:
What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary?
### Answer:
SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = "mary murphy" AND style = "contemporary" |
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_19179465_1 (lost INTEGER, points VARCHAR)
### Question:
How many games were lost when the club got 34 points
### Answer:
SELECT MIN(lost) FROM table_19179465_1 WHERE points = 34 |
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_33 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
### Question:
In which district is the incumbent a republican first elected in 1998?
### Answer:
SELECT district FROM table_name_33 WHERE party = "republican" AND first_elected = 1998 |
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 (lane VARCHAR, rank VARCHAR, nationality VARCHAR)
### Question:
Which lane ranked less than 4 for the Netherlands?
### Answer:
SELECT lane FROM table_name_4 WHERE rank < 4 AND nationality = "netherlands" |
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_13564637_3 (tries_against VARCHAR, lost VARCHAR)
### Question:
what are the tries where the game was lost by 4?
### Answer:
SELECT tries_against FROM table_13564637_3 WHERE lost = "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 HOTELS (star_rating_code VARCHAR, price_range INTEGER); CREATE TABLE Ref_Hotel_Star_Ratings (star_rating_description VARCHAR, star_rating_code VARCHAR)
### Question:
What are the star rating descriptions of the hotels with price above 10000?
### Answer:
SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000 |
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_62 (opponent VARCHAR, record VARCHAR)
### Question:
Which opponent has a record of 78-60?
### Answer:
SELECT opponent FROM table_name_62 WHERE record = "78-60" |
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_10577579_2 (founded INTEGER, location VARCHAR)
### Question:
That is the year founded for the institution location of Nashville, Tennessee?
### Answer:
SELECT MIN(founded) FROM table_10577579_2 WHERE location = "Nashville, Tennessee" |
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_96 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR)
### Question:
what is the average bronze when gold is 1, the nation is hungary and the rank is less than 3?
### Answer:
SELECT AVG(bronze) FROM table_name_96 WHERE gold = 1 AND nation = "hungary" AND rank < 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_30 (kickoff VARCHAR, date VARCHAR)
### Question:
What is the kickoff for the game on october 22, 2000?
### Answer:
SELECT kickoff FROM table_name_30 WHERE date = "october 22, 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_20466963_4 (date VARCHAR, guest_4 VARCHAR)
### Question:
How many dates are associated with a guest 4 being Jim Jeffries (debut)?
### Answer:
SELECT COUNT(date) FROM table_20466963_4 WHERE guest_4 = "Jim Jeffries (debut)" |
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 song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
### Question:
Find the top 3 artists who have the largest number of songs works whose language is Bangla.
### Answer:
SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "bangla" GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 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_72 (icao VARCHAR, commenced_operations INTEGER)
### Question:
Which ICAO has a Commenced operations larger than 2011?
### Answer:
SELECT icao FROM table_name_72 WHERE commenced_operations > 2011 |
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_12094300_1 (evening_gown VARCHAR, state VARCHAR)
### Question:
How many times did district of Columbia receive a score for evening gown?
### Answer:
SELECT COUNT(evening_gown) FROM table_12094300_1 WHERE state = "District of Columbia" |
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 ship (name VARCHAR, tonnage VARCHAR)
### Question:
List the name and tonnage ordered by in descending alphaetical order for the names.
### Answer:
SELECT name, tonnage FROM ship ORDER BY name DESC |
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 captain (rank VARCHAR, CLASS VARCHAR)
### Question:
Find the captain rank that has some captains in both Cutter and Armed schooner classes.
### Answer:
SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner' |
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 (aggregate VARCHAR, round VARCHAR, club VARCHAR)
### Question:
What is the aggregate for the first round for K.S.V. Waregem?
### Answer:
SELECT aggregate FROM table_name_54 WHERE round = "first round" AND club = "k.s.v. waregem" |
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 (Id VARCHAR)
### Question:
What shows for 2013 when 2012 is 2r?
### Answer:
SELECT 2013 FROM table_name_16 WHERE 2012 = "2r" |
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_1053802_1 (main_presenters VARCHAR, region_country VARCHAR)
### Question:
What is the main presenter of bulgaria?
### Answer:
SELECT main_presenters FROM table_1053802_1 WHERE region_country = "Bulgaria" |
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_23 (crowd VARCHAR, away_team VARCHAR)
### Question:
When Richmond is the away team, what is the crowd size?
### Answer:
SELECT crowd FROM table_name_23 WHERE away_team = "richmond" |
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 (date VARCHAR, opponent VARCHAR)
### Question:
When was naomi cavaday the opponent?
### Answer:
SELECT date FROM table_name_19 WHERE opponent = "naomi cavaday" |
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_59 (position VARCHAR, player VARCHAR)
### Question:
What is the position of player Tiffany Garofano (2)?
### Answer:
SELECT position FROM table_name_59 WHERE player = "tiffany garofano (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_17425749_1 (colorado VARCHAR, alaska VARCHAR)
### Question:
Name the colorado when alaska is connecticut
### Answer:
SELECT colorado FROM table_17425749_1 WHERE alaska = "Connecticut" |
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_22347090_5 (us_viewers__million_ VARCHAR, production_code VARCHAR)
### Question:
Name the viewers for production code being 3x6706
### Answer:
SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = "3X6706" |
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_43 (score VARCHAR, time VARCHAR)
### Question:
What Score has a time of 14:10?
### Answer:
SELECT score FROM table_name_43 WHERE time = "14:10" |
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_278229_1 (commandery VARCHAR)
### Question:
when changsha 長沙 is the commandery what is the commandery capital?
### Answer:
SELECT commandery AS capital FROM table_278229_1 WHERE commandery = "Changsha 長沙" |
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_1656555_1 (died VARCHAR, ordained_bishop VARCHAR)
### Question:
What is the death date of the archbishop who was ordained as bishop April 26, 1927?
### Answer:
SELECT died FROM table_1656555_1 WHERE ordained_bishop = "April 26, 1927" |
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_18461045_1 (ohio VARCHAR, kentucky VARCHAR)
### Question:
What was the little league team from Ohio when the little league team from Kentucky was Warren County South LL Bowling Green?
### Answer:
SELECT ohio FROM table_18461045_1 WHERE kentucky = "Warren County South LL Bowling Green" |
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_72 (full_professors VARCHAR, head VARCHAR, lecturers VARCHAR)
### Question:
How many full professors work under Hartmut Kliemt with more than 0 lecturers?
### Answer:
SELECT COUNT(full_professors) FROM table_name_72 WHERE head = "hartmut kliemt" AND lecturers > 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_40 (Id VARCHAR)
### Question:
Tell me the 2011 with 2012 of 2r
### Answer:
SELECT 2011 FROM table_name_40 WHERE 2012 = "2r" AND 2010 = "2r" AND 2009 = "2r" |
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 (season VARCHAR, lead VARCHAR)
### Question:
What is Season, when Lead is "Michael Goodfellow"?
### Answer:
SELECT season FROM table_name_12 WHERE lead = "michael goodfellow" |
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 (opponent VARCHAR, date VARCHAR)
### Question:
what was the opponent on november 14, 2005?
### Answer:
SELECT opponent FROM table_name_91 WHERE date = "november 14, 2005" |
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_80 (total_attendance VARCHAR, average_attendance VARCHAR, sport VARCHAR)
### Question:
What's the total attendance in rink hockey when the average attendance was smaller than 4850?
### Answer:
SELECT total_attendance FROM table_name_80 WHERE average_attendance < 4850 AND sport = "rink hockey" |
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_23 (catalog VARCHAR, year INTEGER)
### Question:
What catalog came out after 2000?
### Answer:
SELECT catalog FROM table_name_23 WHERE year > 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_name_39 (prominence__m_ INTEGER, country VARCHAR)
### Question:
What is the sum of the prominence in m of slovakia?
### Answer:
SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = "slovakia" |
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_2980024_1 (total_apps VARCHAR, league_goals VARCHAR)
### Question:
What were the total apps for Dunne in season where he had 0 league goals?
### Answer:
SELECT total_apps FROM table_2980024_1 WHERE league_goals = 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_99 (result VARCHAR, opponent VARCHAR)
### Question:
What is the result where the opponent is Columbus Destroyers?
### Answer:
SELECT result FROM table_name_99 WHERE opponent = "columbus destroyers" |
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 (country VARCHAR, supermarkets VARCHAR)
### Question:
What country has 50 supermarkets?
### Answer:
SELECT country FROM table_name_19 WHERE supermarkets = "50" |
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_53 (visitor VARCHAR, date VARCHAR)
### Question:
Who was the visitor on March 17?
### Answer:
SELECT visitor FROM table_name_53 WHERE date = "march 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_28138035_33 (year_location VARCHAR, womens_doubles VARCHAR)
### Question:
What is the place and when was the year when the women's doubles womens were Bai yang Niu Jianfeng?
### Answer:
SELECT year_location FROM table_28138035_33 WHERE womens_doubles = "Bai Yang Niu Jianfeng" |
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_75 (away_team VARCHAR)
### Question:
When Melbourne was the Away team, what was their score?
### Answer:
SELECT away_team AS score FROM table_name_75 WHERE away_team = "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_88 (aggregate VARCHAR)
### Question:
What was the 2nd leg score having an aggregate score of 4-2?
### Answer:
SELECT 2 AS nd_leg FROM table_name_88 WHERE aggregate = "4-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_30 (tonnage__grt_ INTEGER, time VARCHAR, casualties VARCHAR)
### Question:
What is the sum of tonnage with a time at 00:10 and less than 42 casualties?
### Answer:
SELECT SUM(tonnage__grt_) FROM table_name_30 WHERE time = "00:10" AND casualties < 42 |
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_90 (location__numbersites__global_local_ VARCHAR, software VARCHAR, ipv6_address VARCHAR)
### Question:
What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?
### Answer:
SELECT location__numbersites__global_local_ FROM table_name_90 WHERE software = "bind" AND ipv6_address = "2001:503:c27::2: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 customer_addresses (address_type_code VARCHAR)
### Question:
What are the distinct address type codes for all customer addresses?
### Answer:
SELECT DISTINCT address_type_code FROM customer_addresses |
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 (origin VARCHAR, registration VARCHAR)
### Question:
What is the country of origin of the aircraft with a registration s5-hpb?
### Answer:
SELECT origin FROM table_name_67 WHERE registration = "s5-hpb" |
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 (crowd VARCHAR, home_team VARCHAR)
### Question:
How many games is collingwood the home side?
### Answer:
SELECT COUNT(crowd) FROM table_name_4 WHERE home_team = "collingwood" |
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 (venue VARCHAR, home_team VARCHAR, result VARCHAR)
### Question:
What was the Venue of the San Francisco 49ers Home game with a Result of 30-10?
### Answer:
SELECT venue FROM table_name_89 WHERE home_team = "san francisco 49ers" AND result = "30-10" |
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_1342256_33 (candidates VARCHAR, incumbent VARCHAR)
### Question:
Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?
### Answer:
SELECT candidates FROM table_1342256_33 WHERE incumbent = "Harold D. Cooley" |
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 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR)
### Question:
WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON?
### Answer:
SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = "manalongon" |
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_72 (crowd INTEGER, away_team VARCHAR)
### Question:
What was the crowd when the away team was hawthorn?
### Answer:
SELECT MIN(crowd) FROM table_name_72 WHERE away_team = "hawthorn" |
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 (gold INTEGER, bronze INTEGER)
### Question:
What is the average number of gold medals won among the nations that won more than 1 bronze?
### Answer:
SELECT AVG(gold) FROM table_name_40 WHERE bronze > 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_80 (place VARCHAR, artist VARCHAR, draw VARCHAR)
### Question:
How many places have an Artist of augustė, and a Draw smaller than 6?
### Answer:
SELECT COUNT(place) FROM table_name_80 WHERE artist = "augustė" AND draw < 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_24565004_2 (appearances¹ VARCHAR, name VARCHAR)
### Question:
Name the appearances for bernard allou
### Answer:
SELECT appearances¹ FROM table_24565004_2 WHERE name = "Bernard Allou" |
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 (original_team VARCHAR, result VARCHAR)
### Question:
What is the original team that was Hired by Trump (5-19-2005)?
### Answer:
SELECT original_team FROM table_name_84 WHERE result = "hired by trump (5-19-2005)" |
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_27713030_3 (location_attendance VARCHAR, date VARCHAR)
### Question:
What is the location and attendance on October 18?
### Answer:
SELECT location_attendance FROM table_27713030_3 WHERE date = "October 18" |
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 (year INTEGER, competition VARCHAR, position VARCHAR)
### Question:
Which year did the World indoor championships gave a position of 3rd?
### Answer:
SELECT SUM(year) FROM table_name_12 WHERE competition = "world indoor championships" AND position = "3rd" |
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 (wins INTEGER, top_5 VARCHAR, top_10 VARCHAR)
### Question:
What is the average win with a top 5 greater than 2 and a top 10 less than 5?
### Answer:
SELECT AVG(wins) FROM table_name_99 WHERE top_5 > 2 AND top_10 < 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_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR)
### Question:
What competition had a final round in the finals and the final position winners?
### Answer:
SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals" |
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_11230937_2 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR)
### Question:
How many millions of viewers watched episode 15?
### Answer:
SELECT us_viewers__millions_ FROM table_11230937_2 WHERE no_in_season = 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_84 (gain INTEGER, long VARCHAR, name VARCHAR, loss VARCHAR, avg_g VARCHAR)
### Question:
Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of sheehan, tyler, and a Long larger than 11?
### Answer:
SELECT MIN(gain) FROM table_name_84 WHERE loss > 2 AND avg_g > -6 AND name = "sheehan, tyler" AND long > 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 shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_Name VARCHAR, Shop_ID VARCHAR)
### Question:
List the names of shops that have no devices in stock.
### Answer:
SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock) |
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 (country VARCHAR, name VARCHAR)
### Question:
Which Country has azeri tv tower?
### Answer:
SELECT country FROM table_name_61 WHERE name = "azeri tv tower" |
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_85 (release_date VARCHAR, title VARCHAR)
### Question:
What was the release date of the episode titled Drip-Along Daffy?
### Answer:
SELECT release_date FROM table_name_85 WHERE title = "drip-along daffy" |
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_53 (player VARCHAR, round VARCHAR)
### Question:
what player is playing on round 1
### Answer:
SELECT player FROM table_name_53 WHERE round = "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_12 (attendance VARCHAR, result VARCHAR)
### Question:
What was the attendance when the result was 1-1?
### Answer:
SELECT attendance FROM table_name_12 WHERE result = "1-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_82 (surface VARCHAR, score VARCHAR)
### Question:
On what surface was the match played with a score of 4–6, 6–3, 6–1?
### Answer:
SELECT surface FROM table_name_82 WHERE score = "4–6, 6–3, 6–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_63 (opponent VARCHAR, round VARCHAR, location VARCHAR)
### Question:
Who was the opponent of the match in South Dakota, United States which has 2 rounds?
### Answer:
SELECT opponent FROM table_name_63 WHERE round = 2 AND location = "south dakota, united states" |
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_76 (school VARCHAR, hometown VARCHAR)
### Question:
Which school is in Riverside, CA?
### Answer:
SELECT school FROM table_name_76 WHERE hometown = "riverside, ca" |
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 (points_classification VARCHAR, stage VARCHAR)
### Question:
Who had the Points classification for Stage 13?
### Answer:
SELECT points_classification FROM table_name_20 WHERE stage = "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_86 (car VARCHAR, long VARCHAR)
### Question:
How many carries for the player with a 2 yard long?
### Answer:
SELECT COUNT(car) FROM table_name_86 WHERE long = "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_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
### Question:
What is the average first elected year that has a district of 11 and a committee of environmental matters?
### Answer:
SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters" |
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_87 (ball_diameter VARCHAR, location VARCHAR, period VARCHAR)
### Question:
What's the Ball Diameter with the Location oof El Manati, and the Period of 1200 BCE?
### Answer:
SELECT ball_diameter FROM table_name_87 WHERE location = "el manati" AND period = "1200 bce" |
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 All_documents (document_type_code VARCHAR)
### Question:
Show the number of documents with document type code CV or BK.
### Answer:
SELECT COUNT(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK" |
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_75 (year_s__won VARCHAR, total INTEGER)
### Question:
What years did the player with a total larger than 157 have wins?
### Answer:
SELECT year_s__won FROM table_name_75 WHERE total > 157 |
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_39 (attendance VARCHAR, record VARCHAR)
### Question:
How many people attended the game with a record of 86-56
### Answer:
SELECT COUNT(attendance) FROM table_name_39 WHERE record = "86-56" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.